OSXtotheZ Posted February 7, 2008 Share Posted February 7, 2008 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. Link to comment Share on other sites More sharing options...
hecker Posted February 7, 2008 Share Posted February 7, 2008 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 Link to comment Share on other sites More sharing options...
Suhail Posted February 7, 2008 Share Posted February 7, 2008 Use Div's Instead of tables Link to comment Share on other sites More sharing options...
OSXtotheZ Posted February 7, 2008 Author Share Posted February 7, 2008 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. Link to comment Share on other sites More sharing options...
realfolkblues Posted February 26, 2008 Share Posted February 26, 2008 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. Link to comment Share on other sites More sharing options...
qbattersby Posted February 27, 2008 Share Posted February 27, 2008 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. Link to comment Share on other sites More sharing options...
OSXtotheZ Posted March 15, 2008 Author Share Posted March 15, 2008 Thanks guys your spot on with the specifying of zero if you leave width fields blank they add unwanted width. Link to comment Share on other sites More sharing options...
Recommended Posts