Horiztonal Navigations

This is a discussion on "Horiztonal Navigations" within the Web Page Design section. This forum, and the thread "Horiztonal Navigations are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 28th, 2007, 21:29
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Horiztonal Navigations

PHP: Select all

ul.icons {
    
margin0px;
    
padding0px;
    list-
style-typenone;
}

ul.icons li {
    
width86px;
    
height86px;
    
margin-left4px;
    
background-imageurl(images/itembg.png); 
}

ul.icons :hover
{
    
margin-top8px;

I'm missing something i think, it seems to display vertically instead of horizontally. What did i miss out? Thanks.
Reply With Quote

  #2 (permalink)  
Old Jul 28th, 2007, 21:38
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Horiztonal Navigations

add

display: inline;

Code: Select all
ul.icons li {
    width: 86px;
    height: 86px;
    margin-left: 4px;
    background-image: url(images/itembg.png); 
}
Reply With Quote
  #3 (permalink)  
Old Jul 28th, 2007, 21:42
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Horiztonal Navigations

Ah, it's now destroyed my idea.

http://www.leoncalder.com/port/
http://www.leoncalder.com/port/style.css

Should look like this;



Now what's gone terribly wrong?
Reply With Quote
  #4 (permalink)  
Old Jul 29th, 2007, 00:30
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Horiztonal Navigations

That pictures so small I can't see what it's supposed to look like.

However, there is only a small snippet of code in your html so I doubt it's going to look like that????!!!!'

This works...
html
Code: Select all
<div id="container">
    <ul class="icons">
        <li><a href="#" title="">HOME</a></li>
        <li><a href="#" title="">PORTOLIO</a></li>
        <li><a href="#" title="">TESTIMONIALS</a></li>
        <li><a href="#" title="">ABOUT ME</a></li>
        <li><a href="#" title="">CONTACT</a></li>
    </ul>
</div>
css which is yours
Code: Select all
body {

    font-family: Arial, Geneva, Verdana, helvetica, sans-serif;

    font-size: 10px;

    margin: 0px 0px 0px 0px;

    color: #000000;

    background-color: #302d2d;

}



a:link {

    text-decoration: none;

    color: #ffffff;

}



a:visited {

    text-decoration: none;

    color: #ffffff;

}



a:active {

    text-decoration: none;

    color: #ffffff;

}



a:hover {

    text-decoration: none;

    color: #ffffff;

}



#container{

    width: 700px;

    margin: auto;

    margin-top: 20px;

}



ul.icons {

    margin: 0px;

    padding: 0px;

    list-style-type: none;

}



ul.icons li {

    width: 68px;

    height: 68px;

    padding: 9px;

    margin-left: 4px;

    background-image: url(images/itembg.png); 

    display: inline;

}



ul.icons :hover

{

    width: 68px;

    height: 68px;

}
Reply With Quote
  #5 (permalink)  
Old Jul 29th, 2007, 00:41
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Horiztonal Navigations

It all messed up adding the inline.

I've reverted it back slightly, it works here just not when i add display: inline;
Reply With Quote
  #6 (permalink)  
Old Jul 29th, 2007, 13:06
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Horiztonal Navigations

Here you go!!
This works in FF2 and IE7. Didn't test in IE6

Html is the same.
Change CSS to this
Code: Select all
body {

    font-family: Arial, Geneva, Verdana, helvetica, sans-serif;

    font-size: 10px;

    margin: 0px 0px 0px 0px;

    color: #000000;

    background-color: #302d2d;

}



a:link {

    text-decoration: none;

    color: #ffffff;

}



a:visited {

    text-decoration: none;

    color: #ffffff;

}



a:active {

    text-decoration: none;

    color: #ffffff;

}



a:hover {

    text-decoration: none;

    color: #ffffff;

}



#container{

    width: 700px;

    margin: auto;

    margin-top: 20px;

}



ul.icons {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}



ul.icons li {
    background: url(images/itembg.png);
    width: 68px;
    height: 68px;
    padding: 9px;
    margin-left: 4px;
    display: inline;
    float: left;
}



ul.icons :hover

{
    width: 68px;
    height: 68px;
    
}
PS .png files are not supported in IE6 so you will need a hack or if you could change it to a .gif you'll be all set!
Reply With Quote
  #7 (permalink)  
Old Jul 29th, 2007, 14:07
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Horiztonal Navigations

Ahhhhh, this forum support has gotten a lot better

Thanks so much!
Reply With Quote
Reply

Tags
lists

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


All times are GMT. The time now is 05:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43