[Javascript] CSS question , please

Peter Lauri lists at dwsasia.com
Tue May 30 12:25:35 CDT 2006


Or just take away width, but then they will be of dynamic width...

-----Original Message-----
From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
On Behalf Of Hernly, Harold APD/DTS
Sent: Wednesday, May 31, 2006 3:07 AM
To: '[JavaScript List]'
Subject: RE: [Javascript] CSS question , please 

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 at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
On Behalf Of kamal adif
Sent: Tuesday, May 30, 2006 3:49 PM
To: javascript at LaTech.edu
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 at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list