Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-31-2009, 09:05 PM   PM User | #1
Banana
New to the CF scene

 
Join Date: Oct 2009
Location: France
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Banana is an unknown quantity at this point
List icon problem

I'm new with all that HTML and CSS and I need a little help.

I tried to add an image as a list item marker but it didn't work and I'm not really sure actually where do i have to put it in. Could someone please help me out here?

HTML

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
    <title>Website test</title>
    <link rel="stylesheet" type="text/css" href="style.css" media="screen,projection">
</head>
<body bgcolor="black">
<div align=top right>

        <ul id="nav">
            <li><a href="#" title="Go to the front page">Home</a></li>
            <li><a href="#" title="Retrieve support from staff">Support</a></li>
            <li><a href="#" title="Send an email to us">Contact</a></li>
            <li><a href="#" title="View company info">About</a></li>
        </ul>
</div>

</body>
</html>
CSS

Code:
#nav {
        list-style-type: none;
        width: 200px;
        background: #141414;
        float: right;
        border-style:solid;
        border-width:1px;
        border-color:white;
        }
        
#nav li {
        display: inline;
        }
        
#nav a {
        display: block;
        height: 23px;
        padding: 9px 0 0 9px;
        font-size: 13px;
        text-decoration: none;
        color: #FFF;
        border-bottom: 1px solid #090909;
        border-left: 1px solid #090909;
        }
        
#nav a:hover {
        background: #242424;
        border-style:solid;
        border-width:1px;
        border-color:white;
        }

Last edited by Banana; 10-31-2009 at 09:34 PM..
Banana is offline   Reply With Quote
Old 10-31-2009, 09:07 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello Banana,
Have a look at an example page of mine - http://nopeople.com/CSS/li_image/index.html
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
Banana (10-31-2009)
Old 10-31-2009, 09:29 PM   PM User | #3
Banana
New to the CF scene

 
Join Date: Oct 2009
Location: France
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Banana is an unknown quantity at this point
Thank you! I think i figured it out
Banana is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:10 AM.


Advertisement
Log in to turn off these ads.