floated

Floated image with variable width and heading with background image

I have the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Test</title> <style type="text/css"> body {font-family:Arial, Helvetica, sans-serif;font-size:12px;}...

Two floated divs, one that isn't always there and how to get the other to stretch?

I have two floated divs which appear side by side as they should, however I want to have div 1 stretch to the full width of its container when div 2 is not present. I've tried doing this by removing the width of div 1 (while leaving the width of div 2) however this breaks the float and pushes div two to a new line. Can anyone advise me...

IE8 creates an extra floated div

I've been pulling my hair out for days over this one. http://djembefola.com In ie 8 there is 5 columns, even though there is only for 4 subcontentcols in the markup. I've tried removing all the content of the columns and I'm now stumped. Anybody have any ideas? ...