|
| |
|
|
CelticDragon
Posts: 227 Joined: 11/14/2003 From: Dublin, Ireland Status: offline
|
Lists - 5/26/2005 9:01:45
Hey guys, Any way I can make my lists (ul) not go out to the right so much? Have a narrow enough navigation column and want to put a load of points with sub points down along it but they are flying out to nearly half way across the column.... Code for the ul is here: ul { list-style-type: circle; list-style-position: inside; list-style-image: url('images/point.gif'); } I've taken out the padding which I had to add to make the rest of the text (in another cell) not be on top of the edge of the column and that didn't seem to have an effect! Any advice? Thanks Stephen
_____________________________
I Lost My Stuff - If you lost it, someone found it!
|
|
|
|
caz
Posts: 3626 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: Lists - 5/26/2005 9:36:57
Have you given a width to the nav column? Otherwise without a url, or code it's a wee bit difficult to help. Cheers Carol
_____________________________
Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard. Cheshire cat. www.doracat.co.uk I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
CelticDragon
Posts: 227 Joined: 11/14/2003 From: Dublin, Ireland Status: offline
|
RE: Lists - 5/27/2005 5:10:05
Hi Carol, The code of the nav column is: td.navmain { background-image: url('images/navmain.jpg'); background-repeat: repeat-y; padding-left: 10px; padding-right: 7px; padding-top: 3px; padding-bottom: 3px; } The padding on the left and right is because the image in the background has a border and drop shadow on it so the text needs to be padded in a bit to stop it from sitting up on the edges! Thanks Stephen
_____________________________
I Lost My Stuff - If you lost it, someone found it!
|
|
|
|
caz
Posts: 3626 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: Lists - 5/27/2005 7:51:53
As a stab in the dark, without seeing the rest of the css or html, try putting an explicit width on the column to contain the content within limits.
_____________________________
Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard. Cheshire cat. www.doracat.co.uk I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
c1sissy
Posts: 5087 Joined: 7/20/2002 From: NJ Status: offline
|
RE: Lists - 5/27/2005 12:53:57
This (*) is the universal selector, which when placed in a style rule as I have shown above lets you style even the html and body if you wish with a margin or padding as some people sometimes do. I have come across this in many books and oneline groups dealing with css and this is a recomendation that appears to be used by many.
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|