OSXtotheZ
Feb 7 2008, 11:56 AM
Have a question about a simple 3 column table in Dreamweaver. Table has no padding or border or spacing. Cell 1 has pic that us 288 wide 2nd cell has a spacer gif that is 40px wide and last cell has another pic that is 288px so by my count the total table should be 616px wide altogether. What i don't understand is why DW insist the table be 630px altogether where is this extra space comming from? Why does DW NOT want to render the table so that all cells add up correctly.
hecker
Feb 7 2008, 12:02 PM
You could try:
- either just removing the width property from your table so the images "force" the proper table width.
- check to see if any of your images has a margin.
- check to see if there are any invisible symbols in your cells (via code editor).
- forget the tables and use CSS.
Cheers,
hecker
Suhail
Feb 7 2008, 05:20 PM
Use Div's Instead of tables
OSXtotheZ
Feb 7 2008, 11:11 PM
This is edit of an existing site so just working with whats there. overhauling to CSS table-less opens a whole other can of worms, I'm not even going to go there and Yes I can force the correct table width but I was just curious as to Why DreamWeaver just calculated the total table width to something other than what all the cells actually added up to.
realfolkblues
Feb 26 2008, 02:38 AM
because unless you set the table to boarder, padding, and the other one I forget what its called to =0 then it seems to add ten in with default values. Whenever I start a new table I always start with setting all the propertys to 0. Its a habbet that has saved me slot of headaches.
qbattersby
Feb 27 2008, 05:26 AM
You must ensure you set all properties to 0, if that isnt working just try recreating the table and setting the properties to 0, I've personally had issues with DW messing up widths. If that doesnt work check the code and ensure the width of the table overall is set to your desired pixels.
And yea, CSS would be so much less hassle and more hassle at the same time if it is an existing page.
OSXtotheZ
Mar 15 2008, 04:54 AM
Thanks guys your spot on with the specifying of zero if you leave width fields blank they add unwanted width.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.