www.moddedmustangs.com/mm5 Im redesigning my site, and I can't figure out what I did to cause the text in the tables to not wrap. They just extend the table out further breaking the page layout. I've always used table sizes at 100% and the text always wrapped before :/
The banners width is set at 100%, it's not the banner - it's just stretching out from the text not wrapping. If I reduce the length of the text everything looks perfect. (ps - I got a negative for posting this twice, although when I posted it the first time it was nowhere to be found.. I still don't know where the first post went).
Hmmm... first try deleting the width="100%" from the banner line -- you don't really want that stretching anyway. I took a look at the CSS file -- can't see anything wrong there. When I access http://www.moddedmustangs.com/mm5/images/mmbanner.jpg that image 876 pixels wide. On the page it's even wider so you're right - it's stretching to 100%. Quick look: Looks like a closing </p> without an opening <p>, no <td></td>, and what does the scope="row" part do to wrapping?: <table width="100%" class="bodyline" > <tr> <th height="283" scope="row"><p class="style1 style2"> <!-- Begin Content --> Content Here Really Long Content Here Content Here Content Here Content Here Content Here Content Here Content Here Content Here Content Here <!-- End Content --> </p> </th> </tr> </table> Code (markup):
There is an opening <p>, I added td tags, and removed the scope="row" (put it back after) and it did not fix. I guess I'll start over :/
It is definitely your css. Download Firefox and install Web Developer toolbar extension. By hitting Ctrl-Shift-S to disable all stylesheets, you can see that the banner no longer stretches.
cellpic_bkg.jpg Width: 100%px, Height: 0px This is what's probably causing the main banner image to resize to Width: 1249px, Height: 215px from it's original Physical Width: 876px, Physical Height: 151px, and therefore everything else will size to fit. I'm not sure where the error is creeping in though.
cellpic_bkg.jpg correct, it was this that was causing the problem. images, of course, don't break into another line. Thanks for all your help, and especially to WhatiFind for re-writing the files for me.