iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old July 15th, 2006, 07:35 AM   #1
Highly Reputable Member
 

Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 AdRock will become famous soon enough
CSS navigation

Hello nice people

I am really stumped on this one

I have some CSS i useto ge the effect i want using an unordered list to create my navigation. The only problem is that it is taking out the bullet but what I want to do is to be able to use either a square bullet or use my own. Apart from that it is perfect.

Can someone please have a look at the code and see what is going wrong?

Many thanks

Adam

Code:
 
#navigation {padding: 0; margin: 0;
  font: bold 12px Verdana, sans-serif;
  border-bottom: 1px solid gray; width: 13em;}
#navigation li {list-style: square; margin: 0; padding: 0.25em;
  border-top: 1px solid gray;}
#navigation li a {text-decoration: none;}
Code:
 
<ul id="navigation">
<li><a href="index.html" id="home">Home</a></li>
<li><a href="products.html" id="products">Products</a></li>
<li><a href="services.html" id="services">Services</a></li>
<li><a href="fun.html" id="fun">Fun!</a></li>
<li><a href="support.html" id="support">Support</a></li>
<li><a href="about.html" id="current">About Us</a></li>
<li><a href="contact.html" id="contact">Contact</a></li>
</ul>
AdRock is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 15th, 2006, 07:56 AM   #2
Most Reputable Member
 

Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,307
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 ukgeoff has a spectacular aura about ukgeoff has a spectacular aura about
Re: CSS navigation

The symbol selected using list-style or list-style-type actually appears in the left-hand margin space.

If you give your ul a margin-left: 20px for example, you will see the square.

This has the issue that the squares are to the left of your seperation lines but that may not be an issues for you. If it is, the best way around it I think is to provide your own image.
ukgeoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
css , navigation


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigation inkz HTML, XHTML and CSS 2 April 22nd, 2008 12:33 PM
CSS Navigation Help penguin Your Design and Layout 3 March 15th, 2008 11:43 AM
Navigation help elephantinc Flash and ActionScript 9 February 13th, 2008 07:46 PM
CSS Navigation Help! crackafaza HTML, XHTML and CSS 3 January 21st, 2008 12:56 PM
Navigation Frankiiei Your Design and Layout 15 September 14th, 2007 12:03 PM


Search Engine Optimization by vBSEO 3.2.0 RC8