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 04-13-2010, 06:18 AM horizontal list
Ultra Talker

Posts: 254
Trades: 0
please look at this link
http://sudhakargolakaram.co.in/files...ontallist.html

i have created 2 lists and what i want is list2 should behave like list1


i am using a cms and due to this in list2 the cms is generating list like
<ul id="nav-sub">
<li class="here"><a href="#">Homepage</a>
<ul>
<li><a href="#">Lifestyle</a></li>
<li><a href="#">Living &amp; Care Options</a></li>
<li><a href="#">Social Activities</a></li>
<li><a href="#">Location &amp; Local Amenities</a></li>
<li><a href="#">FAQ</a></li>
</ul>
</li>
</ul>

and i cannot manually change this ul li code that the cms is generating so i have to using the code that is being generated and change the ul li code


initially only the 1st list item Homepage was occupying the entire width and the links from Lifestyle onwards were appearing in a new line so i used
ul#nav-sub {
float: left;
}

ul#nav-sub li.here ul {
float: left !important;
}

so that both will appear beside each other also i have used negative margins as i did not know any otherway to make the links from Lifestyle to appear beside Homepage

what i need is when i hover over Homepage in list2 the repeating background is occupying the entire width whereas it should only appear like the one in List1


please advice how i can get this working also the left margin value i have given is only an approximate value to get it closer to Homepage link is this the right way to go about

thanks
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-14-2010, 11:50 AM Re: horizontal list
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
The HTML being output by the CMS isn't correct. A ul inside a li will create a drop. This is your problem. If you can get that fixed you should be able to get them matched no problem. If you can not fix it manually, consider a new CMS.
__________________

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


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

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Reply     « Reply to horizontal list
 

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.76417 seconds with 12 queries