JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 14th, 2001, 10:45 AM
kelsey kelsey is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 4 kelsey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can any one help me with this div layer problem?
This is what i'm trying to do:

• Left align an image in a div layer to wrap text around it.

This is what happens:
• Div layer seems to ignore the height of the image.
• Div layer height seems to be governerd by the depth of the text
• See here for an example: URL

Many thanks,

Kelsey

Reply With Quote
  #2  
Old February 14th, 2001, 12:17 PM
sturg sturg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Vancouver, WA
Posts: 49 sturg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
Hi Kelsey,

I have a couple solutions, and no good explanation for why they work.

Solution #1:

add a height definition to your style definition for .box1:
Code:
.box1 { 
	BACKGROUND-COLOR: #d8d8d8;
	BACKGROUND-IMAGE: url(black2x2.gif);
	BACKGROUND-REPEAT: repeat-x;
	height:10px;
}

Believe it or not, it doesn't appear to matter what you set the height to!

This appears to tell the div that it should wake up and at least start thinking about height.

Solution #2:
remove the outer Div (where you set the width to 250px) and set the width:250px in .box1 again.

Now... do you want to start to think about Netscape 4.x? Because this does not work for NS 4.
__________________
--
John Sturgeon <><
johns@senareider.com
http://www.senareider.com/technology.php

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > dhtml layers and images

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap