Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ background moving when maincontent div changes height

Posted by: klarko4444 Jul 5 2012, 09:23 PM

I think this has something to do with float but I'm new to all this code, I'm really trying to get a grasp on it.

When I add text to my main content div, it changes height with the amount of text I add. So if I have a lot of text, the height expands to fit the text. The problem is, the background image in Body is getting dragged down with it! Weird....does anyone know what could be causing this?

Please and thank you!


Posted by: pandy Jul 6 2012, 12:07 AM

The URL to the page would be helpful. happy.gif

Posted by: klarko4444 Jul 7 2012, 12:40 PM

The site is far from being done so I haven't uploaded it yet. But here is the html file of one of the pages that this is happening. Attached File  courses.html ( 11.03k ) Number of downloads: 585

Posted by: pandy Jul 7 2012, 01:05 PM

Just upload what you have to temp directory, images, CSS and all. It's a little hard to see what's happening with out that.

Posted by: klarko4444 Jul 7 2012, 01:57 PM

here it is:

http://fastlinebikademy.com.au/courses.html

Thanks!

Posted by: Darin McGrew Jul 7 2012, 03:26 PM

What do you mean by "getting dragged down with it"? I didn't see anything unusual in any of the browsers I tried (Firefox, Chrome, Safari, Opera, all on MacOS).

Posted by: pandy Jul 7 2012, 03:54 PM

Neither do I. Is it any special browser you see this in?

Posted by: klarko4444 Jul 7 2012, 06:11 PM

I just emptied cache again and reset safari and now it is not showing up. So it is fixed! Or it never was a problem!? smile.gif But it still appears in my html files while working in Dreamweaver, its' kind of weird that it's doing that.

Thanks so much for looking into it for me!

Posted by: pandy Jul 7 2012, 06:44 PM

I don't know what DW uses for rendering agent these days, but I hear that a lot, that pages look or behave different in DW. I wouldn't be too concerned. No one but you will look at the site in DW. The lesson to lean is maybe that you shouldn't trust what you see in DW.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)