Monday, March 26, 2012

Tables arent sized correctly in VS2005

Im using visual studio to make my website, but im having problems with tables every time.

I use the mnouse to resize the tables cells, but every time they are shown totally wrong! If i place a table with to columns and a width of 800px and then set the left coulm to be 50 px then the shown lengt is a third of the table of that column. Also in the preview.

I havent seen this problem in dreamweaver, so i dont know if this is a setting or something that i have to set..

what does the STYLE property look like on the <table> tag?

Are any CSS classes being inherited?


Well it seems like that if i drag a cell in a table, only the width of this cell is being set and not the one in the next cell. Which means that when i get these strange sizes, then the table have the width 800px, but the first column have a width of 50px and the next have the width 150 (just and example). If i then type the proper lenghts in to the style field, then i can make it display properly.

Is this a bug in VS perhaps (a rather big bug i would say)

I would like the drag the sizes around, so that it is easier to see


not sure I follow... but remember that CSS goes down to the lowest level. If you have two colums and you set cell1 to 50 and cell2 to 50 then you get 100... if you want the table to 800 and only cell1 to 50 then make sure that cell2 has NO WIDTH SET...

I've found that NO designer is great for HTML. You are almost always better off doing it yourself from the html view.

0 comments:

Post a Comment