Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] CSS question , please
- From: HAROLD.HERNLY at hqda.army.mil (Hernly, Harold APD/DTS)
- Subject: [Javascript] CSS question , please
- Date: Tue May 30 15:24:15 2006
You need to change the width under ' ul#navlist li' from 15% to 11% to get it on one line. ========================== Best, Lee Hernly No trees were harmed in the sending of this message, however a large number of electrons were terribly inconvenienced. -----Original Message----- From: javascript-bounces@xxxxxxxxxx [mailto:javascript-bounces@xxxxxxxxxx] On Behalf Of kamal adif Sent: Tuesday, May 30, 2006 3:49 PM To: javascript@xxxxxxxxxx Subject: [Javascript] CSS question , please Hi, I am trying to use this code to have a toolbar that has tabs, when I put 8 tabs they overlaped, how to change this css so all the tabs stay in one line : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>%%% Proposal Dev %%%</title> <link rel="SHORTCUT ICON" href="/images/listamatic.ico"> <style type="text/css"> #navcontainer { background: #f0d7d7; margin: 0 auto; padding: 0.6em 0 0 0; font-family: georgia, serif; text-transform: lowercase; } /* to stretch the container div to contain floated list */ #navcontainer:after { content: "."; display: block; line-height: 1px; font-size: 1px; clear: both; } ul#navlist { list-style: none; padding: 0; margin: 0 auto; width: 80%; font-size: 0.8em; } ul#navlist li { display: block; float: left; width: 15%; margin: 0; padding: 0; } ul#navlist li a { display: block; width: 100%; padding: 0.2em; border-width: 1px; border-color: #ffe #aaab9c #ccc #fff; border-style: solid; color: #777; text-decoration: none; background: #f7f2ea; } #navcontainer>ul#navlist li a { width: auto; } ul#navlist li#active a { background: #f0e7d7; color: #800000; } ul#navlist li a:hover, ul#navlist li#active a:hover { color: #800000; background: transparent; border-color: #aaab9c #fff #fff #ccc; } </style> </head> <body> <div id="navcontainer"> <ul id="navlist"> <li id="active"><a href="index.html" id="current">Proposal</a></li> <li><a href="index2.html">Organization</a></li> <li><a href="#">Mailing Info</a></li> <li><a href="#">Invistigator</a></li> <li><a href="#">Key Person</a></li> <li><a href="#">Special Review</a></li> <li><a href="#">Science Code</a></li> <li><a href="#">Other</a></li> </ul> </div> Page one 111111111111111111111111111111111111111111111111 </body> </html> Thank you. _______________________________________________ Javascript mailing list Javascript@xxxxxxxxxx https://lists.LaTech.edu/mailman/listinfo/javascript
- Follow-Ups:
- [Javascript] CSS question , please
- From: Peter Lauri
- [Javascript] CSS question , please
- Prev by Date: [Javascript] Charset or convert characters
- Next by Date: [Javascript] Is integer?
- Previous by thread: [Javascript] CSS question , please
- Next by thread: [Javascript] CSS question , please
- Index(es):