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 08-10-2006, 04:55 PM <ul> and float
Webmaster Talker

Posts: 626
Trades: 0
I have created a three part list (options 1, 2 and 3). Each option has a <ul> which lists the requirements.

Here is the CSS:

HTML Code:
ul {
	list-style-type:disc;
	list-style-position:outside;
}

#steps123 {
	margin-left:130px;
	width:230px;
	text-align:left;
}

#steps123 img {
	float:left;
	margin-right:40px;
}
Here is the HTML:
HTML Code:
<div id="steps123">
   <img alt="no money down mortgage loans" src="/images/1.gif">
   <ul>
      <li>Amazing credit history</li>
      <li>Solid job stability.</li>
      <li>NO bankruptcies.</li>
      <li>Borrow up to 103%</li>
   </ul>


   <img alt="buy no money down" src="/images/2.gif">
   <ul>
      <li>Good credit history</li>
      <li>Solid job stability</li>
      <li>NO bankruptcies</li>
      <li>No derogatory credit in the last 2 years</li>
   </ul>

   <img alt="real estate no money down" src="/images/3.gif">
   <ul>
      <li>Fair credit history</li>
      <li>Strong job stability</li>
      <li>Discharged bankrupt minimum 2 years</li>
      <li>Established credit for at least 1 year</li>
   </ul>
</div>
I'm assuming this error is IE specific but hoping there is a work around.

As you can see, I am displaying an image which is to float:left of the <ul> tags. The list displays the requirements for each option and wraps to the next line where the text is too long for the div. However, in IE only, the last option goes beyond the margin of the image and the last option (when the text wraps), wraps under the image instead of within the bullets.

Is there a work around??
jim.thornton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-10-2006, 11:55 PM Re: <ul> and float
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
I think the unordered list is displaying as a block element. You might try giving the id #steps123 ul a float: right and see what that does.

??
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 08-11-2006, 12:06 AM Re: <ul> and float
Webmaster Talker

Posts: 626
Trades: 0
nope... That made a REAL mess of things!
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 08-11-2006, 12:08 AM Re: <ul> and float
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
sorry
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 08-11-2006, 12:26 AM Re: <ul> and float
Webmaster Talker

Posts: 626
Trades: 0
no problem... any help is appreciated.

Anyone else??
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 08-16-2006, 04:31 PM Re: <ul> and float
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You need to put the width and height on the images in the html as you always would.

Zero out the margins and padding on the <ul> first, adjust as necessary afterwards.

Then, put in a left margin on the <li> items:
#steps123 li{
margin-left: 85px;
}

The margin-left value should be wide enough to push the list items past the right side of the image.
__________________
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 <ul> and float
 

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