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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
UL/LI has no indent when wrapping around floated DIV
Old 09-20-2005, 04:21 PM UL/LI has no indent when wrapping around floated DIV
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
My problem is in IE6 when I float a DIV to the left of copy that has a UL in it, the bullets of the UL are flush against the edge of the DIV and are not indenting like normal. I've tried adding margins and padding to no avail. anyone have any insight? Thanks.

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>Untitled Page</title>
		<style type="text/css" media="screen"><!--
#layer1    {
	visibility: visible;
	margin-right: 10px;
	position: relative;
	width: 142px;
	height: 300px;
	float: left;
	border: solid 1px #d0d9e1
	}

--></style>
	</head>

	<body bgcolor="#ffffff">
		<div id="layer1">Left Nav Float</div>
		<p>80 days around the world, we'll find a pot of gold just sitting where the rainbow's ending. Time - we'll fight against the time, and we'll fly on the white wings of the wind. 80 days around the world, no we won't say a word before the ship is really back. Round, round, all around the world. Round, all around the world. Round, all around the world. Round, all around the world.</p>
		<ul>
			<li>One for all and all for one, Muskehounds are always ready.
			<li>One for all and all for one, helping everybody. One for all and all for one, it's a pretty story
			<li>Sharing everything with fun, that's the way to be. 
			<li>One for all and all for one, Muskehounds are always ready.
		</ul>
		<p>Knight Rider, a shadowy fight into the dangerous world of a man who does not exist. Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless in a world of criminals who operate above the law.</p>
	</body>

</html>
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
 
Register now for full access!
Old 09-21-2005, 07:47 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
you can overide them in your css file.

li{ margin-left:15px; }

Ibbo
__________________

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

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

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

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

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 09-21-2005, 10:06 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
As I said in my post, I tried that and it doesn't seem to do anything. I put in:
HTML Code:
ul, li {
	margin-left: 25px;
	padding-left: 25px
}
And it still looks the same.


EDIT: I fixed it, this seems to work:
HTML Code:
ul {
	list-style-position: inside
}

Last edited by funkdaddu; 09-21-2005 at 10:41 AM..
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 09-21-2005, 10:46 AM
King Spam Talker

Posts: 1,186
Location: Manchester, UK
Trades: 0
You could also use text-indent
gringo is offline
Reply With Quote
View Public Profile Visit gringo's homepage!
 
Old 09-21-2005, 11:31 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
...of course "list-style-position: inside" makes the bullets wrap around with the second line not indenting. I changed some code and somehow I got it to work with my real site code but not my example... so I'll stick with that. Thanks.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to UL/LI has no indent when wrapping around floated DIV
 

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