Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 07-08-2009, 05:35 PM Multiple UL styles?
Ultra Talker

Posts: 316
Trades: 0
edit: I think I've solved most of my issues but there is a problem with the left 'more info' list items under some of the images in IE.

If you look under the images some of the 'buttons' have a width that is less than the others: http://tilecutter.org.uk/

It is the same style so why should this be?

HTML Code:
<ul class="horizontal_list">
    <li><a href="http://www.tilecutter.org.uk/_link.php?linkid=02" title="link to Flat Bed Tile Cutter 445mm" target="_blank" onClick="javascript: pageTracker._trackPageview('/outgoing/button-buy-02.com');">
buy now</a></li>
    <li><a href="http://www.tilecutter.org.uk/_link.php?linkid=02" title="link to Flat Bed Tile Cutter 445mm" target="_blank" onClick="javascript: pageTracker._trackPageview('/outgoing/button-buy-02.com');">
buy now</a></li>
</ul>
Code:
ul.horizontal_list li {
    text-align: center;
    float: left;
    list-style: none;
    padding: 0px;
    margin: 1px;
    border: 1px solid #000000;
    width: 97px;
    font-weight:bold;
}
.horizontal_list li a {
    text-align: center;
    color:#000000;
    text-decoration:none;
    background-color:#96D2F3;
    width: 95%;
    }
.horizontal_list li a:hover {
    text-align: center;
    color:#000000;
    text-decoration:none;
    background-color:#00FF00;
    width: 95%;
    }
Thank you.

Last edited by Joe3000; 07-08-2009 at 06:14 PM.. Reason: fixed some of it
Joe3000 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-10-2009, 02:25 PM Re: Multiple UL styles?
Ultra Talker

Posts: 316
Trades: 0
I've attached a screen shot to help illustrate my problem.

It is strange as its the same code above and below but for one of the li the background color doesn't fill the whole area.

Attached Images
File Type: jpg css-list.JPG (11.7 KB, 6 views)
Joe3000 is offline
Reply With Quote
View Public Profile
 
Old 07-10-2009, 02:48 PM Re: Multiple UL styles?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I believe it has to do with your invalid links, the ones where you have a <div> inside the <a> - you can't do that, and it appears that the opening <a> in that code isn't properly closed.

Validate your code. You're also re-using IDs and ID's MUST be unique.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-10-2009, 02:50 PM Re: Multiple UL styles?
Ultra Talker

Posts: 316
Trades: 0
Thanks. It was a rogue link that wasnt closed.

Will change those IDs although I still can't get my head around the difference!

Last edited by Joe3000; 07-10-2009 at 02:57 PM.. Reason: typo
Joe3000 is offline
Reply With Quote
View Public Profile
 
Old 07-10-2009, 03:04 PM Re: Multiple UL styles?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Maybe this will help -http://css-tricks.com/the-difference...-id-and-class/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Multiple UL styles?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28973 seconds with 13 queries