PDA

View Full Version : help with css for this script



ajfmrf
06-07-2014, 06:48 PM
http://www.dynamicdrive.com/dynamicindex3/tabdocviewer.htm

want to change tabs to buttons.I have that working.
But the buttons are only as big as the text on them.I want to use buttons that are all the same width(large enough to accomodate the biggest word hopefully)

Here is the working site:
http://www.web-user.info/html/viewer2/testview.html
here is txt file of the same file:
http://www.web-user.info/html/viewer2/testview.txt

I have tried to add the width to each part of the 'tablist' but it does not work.

Any help would be appreciated.css alsways give me fits lol

jscheuer1
06-08-2014, 02:59 AM
Get rid of the br tags between the li tags, add this to the stylesheet as shown:


#tablist li a:link, #tablist li a:visited{
color: white;
display: block;
width: 175px;
}


You can adjust the width as desired. Or make it 100% and set a specific pixel width for either the li tags or the ul tag. There are actually quite a number of possibilities. Even more than I've already mentioned.

ajfmrf
06-08-2014, 10:14 PM
Thanks John,I thought it might be something along that line but I never got it to work as I was trying .