/    Sign up×
Community /Pin to ProfileBookmark

More CSS Issues…

I have a webpage with a 3 column layout. The left column has a login div, a navigation div and an rss news div

I want all 3 to have the same width, but IE 5.x doesn’t show the navigation div as being the same width, in fact it looks like it thinks there’s a 10px left margin, which there isn’t.

This is the page: [url]www.firstchoicevacationhomes.com/Stokes/index.asp[/url]

Any suggestions would be appreciated ?

[code]
#leftFrame {
float: left;
width: 160px;
margin: 0 5px 0px 0px;
border-right: 1px solid #f0f0f0;
padding: 0;
text-align: left;
}

#leftFrame ul
{
margin: 5px 0 5px 0;
width: 130px;
padding-left: 0;
list-style-type: none;
font-family: Tahoma,Arial,sans-serif;
font-size:12px;
}

#leftFrame li a
{
display: block;
width: 130px;
padding: 4px 10px 4px 10px;
margin: 1px 0 1px 0;
text-decoration: none;
color: #892700;
background:#f9cf6b url(bg_nav.jpg) repeat-x center;
border: 1px solid #b67439;
}

#leftFrame li a:hover
{
background: #9e2d01 url(bg_nav_o.jpg) repeat-x center;
color: #fff;
}

#rss {
width: 145px;
margin: 0px;
padding: 2px;
color: #505050;
background-color: #f4f4f4;
border: 1px solid #cccccc;
font-family: Tahoma, Arial, Helvetica, sans-serif;
text-align: justify;
}

form#login {
width: 145px;
margin: 0px;
padding: 2px;
color: #505050;
background-color: #f4f4f4;
border: 1px solid #cccccc;
}
[/code]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@cusimar9authorNov 22.2005 — Thanks Fang

I've rewritten it all and got the width right, but introduced 2 new problems :rolleyes:

  • 1. The 'rollover' effect now doesn't work in IE 5.01

  • 2. The rss div in Mozilla now seems to stretch up under the buttons ?


  • This is the new CSS:

    <i>
    </i>#navigation {
    padding: 0px;
    margin: 5px 0px 5px 0px;
    clear: left;
    float: left;
    width: 145px;
    }

    #navigation ul
    {
    padding: 0px;
    margin: 0px;
    margin-left: 0;
    padding-left: 0;
    list-style-type: none;
    }

    #navigation li a
    {
    display: block;

    <i> </i> text-decoration: none;
    <i> </i> color: #892700;
    <i> </i> background:#f9cf6b url(bg_nav.jpg) repeat-x center;
    <i> </i> border: 1px solid #b67439;
    <i> </i> font: 12px Arial,sans-serif;
    <i> </i> font-weight: bold;

    <i> </i> padding: 5px 0px 5px 10px;
    <i> </i> margin: 1px 1px 1px 0px;
    <i> </i> width:146px;
    <i> </i> voice-family: ""}"";
    <i> </i> voice-family:inherit;
    <i> </i> width:139px;
    }

    #navigation li a:hover
    {
    background: #9e2d01 url(bg_nav_o.jpg) repeat-x center;
    color: #fff;
    }
    Copy linkTweet thisAlerts:
    @cusimar9authorNov 22.2005 — Fixed! ?
    ×

    Success!

    Help @cusimar9 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.8,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...