•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 397,786 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,377 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 6988 | Replies: 7
•
•
Join Date: May 2005
Posts: 215
Reputation:
Rep Power: 4
Solved Threads: 0
I am trying to make a navigation bar using a list. Since a list is indented by default, I can't seem to get my list all the way to the left. I have looked at examples of this, but am not sure how they are doing it. Below is what I have
<html>
<head>
<title>test4</title>
<style type="text/css">
ul { list-style-type: none;
float: left; }
li { display: inline;
padding: 2px;
border-style: solid;
border-left-width: 0px;
border-top-width: 1px;
border-bottom-width: 1px;
border-right-width: 1px;}
li.first { border-left-width: 1px; }
</style>
</head>
<body>
<ul>
<li class="first">first</li><li>second</li><li>third</li><li>fourth</li>
</ul>
</body>
</html> In a perfect world exceptions would not be needed.
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
- Photoshop: create a tabbed navigation bar (Web Design Tutorials)
- Navigation Bar that extends the length of the page (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: Need help with table problem, urgent.
- Next Thread: HTML - Clickable Regions - help needed...



Threaded Mode