Hi,
I have an unordered list that displays for elements horizontally. I'd
like each to take up 25% of the browser window but my code does not
work. Can someone help? The code is shown below.
HTML Code
-----------------
<div id="footer">
<ul>
<li id="our_company ">Our Company</li>
<li id="vessel_sche dules">Vessel Schedules</li>
<li id="make_a_book ing">Make a Booking</li>
<li id="rate_reques t">Rate Request</li>
</ul>
</div>
CSS Code
---------------
#footer {
margin: 0;
padding: 0;
clear: both;
}
#footer ul {
margin: 0;
padding: 5px;
list-style: none;
background-image: url(../images/menurest.jpg);
background-repeat: repeat;
}
#footer li {
display: inline;
color: white;
font-weight: bold;
}
#our_company {
width: 25%;
}
#vessel_schedul es
width: 25%;
}
#make_a_booking
width: 25%;
}
#rate_request
width: auto;
}
I have an unordered list that displays for elements horizontally. I'd
like each to take up 25% of the browser window but my code does not
work. Can someone help? The code is shown below.
HTML Code
-----------------
<div id="footer">
<ul>
<li id="our_company ">Our Company</li>
<li id="vessel_sche dules">Vessel Schedules</li>
<li id="make_a_book ing">Make a Booking</li>
<li id="rate_reques t">Rate Request</li>
</ul>
</div>
CSS Code
---------------
#footer {
margin: 0;
padding: 0;
clear: both;
}
#footer ul {
margin: 0;
padding: 5px;
list-style: none;
background-image: url(../images/menurest.jpg);
background-repeat: repeat;
}
#footer li {
display: inline;
color: white;
font-weight: bold;
}
#our_company {
width: 25%;
}
#vessel_schedul es
width: 25%;
}
#make_a_booking
width: 25%;
}
#rate_request
width: auto;
}
Comment