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
styling UL and LI with css
Old 02-22-2005, 06:47 PM styling UL and LI with css
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
Hi all,

As an exercise in using css I am trying to get to grips with styling an un ordered list UL

Im sure im not far of getting it right but I have a couple of gliches in regard to required layout.

My attempt can be seen here

My problem or question is : Why the alignment to the right. I have defined no padding and a correct width of 180px. In design also, (dreamweaver) the list has pushed layer width beyond container layer by the distance shoved to the right.

Im sure i've just made a silly mistake in code but would appreciate some fresh eyes.

cheers.

Steve
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 02-22-2005, 07:31 PM
GrayKard's Avatar
Skilled Talker

Posts: 72
Trades: 0
HTML Code:
@charset "iso-8859-1";
.kuNavHeader {
	PADDING-LEFT: 12px; FONT-WEIGHT: bold; FONT-SIZE: 12px; WIDTH: 180px; COLOR: #ffffff; BORDER-BOTTOM: #fff 1px solid; FONT-FAMILY: Arial; HEIGHT: 18px; BACKGROUND-COLOR: #6699cc
}
.kuLevel0C {
	WIDTH: 180px; BACKGROUND-COLOR: #beddf4
}
.kuLevel0C UL {
	DISPLAY: inline;
}
.kuLevel0C LI {
	LIST-STYLE-IMAGE: url([url]http://www.mastech-solutions.com/kingston%20work/builds/images/arrow.jpg[/url]) ; BORDER-BOTTOM: #fff 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #beddf4
}
.kuLevel0C LI A {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Arial
}
.kuLevel0C LI A:hover {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Arial
}

Try this version of your style sheet and see if it's more how you wanted it to display.
I removed the width designations for most of it, and changed the ul display to inline to avoid the automatic indent that comes with lists.
__________________

Please login or register to view this content. Registration is FREE
GrayKard is offline
Reply With Quote
View Public Profile
 
Old 02-23-2005, 10:26 AM no go on your changes
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
regretfully I still have the same problem. Would you mind having another look for me.
I did change li / ul to dt / dl which certainly dealt with the layout problem but im working to make compliant and cross browser compatable so I can't use.
link to page is here

Your time is much appreciated.

cheers.
The learner
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to styling UL and LI with css
 

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