Using Div and Span tags instead of a table layout
-
Hello folks, I was using a table layout to display controls on my page in such a way that the page will be divided into four sections as shown below:
table
trtd 1 /td
td 2 /td/tr/
trtd 3 /td
td 4 /td/tr
table
and another row and column etc. For some reason, I'm running into issues with formatting and apparently there's a lot of space between every row (note that I'm not setting any explicit properties on tr elements) Anyways, i wanna remove this table layout and use div and span elements instead. The scenario is that I have a few controls (such as buttons, labels etc) that are encapsulated in a panel. I have another set of controls (labels, buttons, grid view etc) that are also encapsulated in a panel. I want these two panels side by side. So I'm putting both of these in a div and setting the display property to inline. This doesn't put the second panel to the right of the first panel. Can someone please show me what other properties that needs to be set to accopmplish such behavior. Tina
-
Hello folks, I was using a table layout to display controls on my page in such a way that the page will be divided into four sections as shown below:
table
trtd 1 /td
td 2 /td/tr/
trtd 3 /td
td 4 /td/tr
table
and another row and column etc. For some reason, I'm running into issues with formatting and apparently there's a lot of space between every row (note that I'm not setting any explicit properties on tr elements) Anyways, i wanna remove this table layout and use div and span elements instead. The scenario is that I have a few controls (such as buttons, labels etc) that are encapsulated in a panel. I have another set of controls (labels, buttons, grid view etc) that are also encapsulated in a panel. I want these two panels side by side. So I'm putting both of these in a div and setting the display property to inline. This doesn't put the second panel to the right of the first panel. Can someone please show me what other properties that needs to be set to accopmplish such behavior. Tina
I'm no expert with layout design, but why dont you put two divs with float left and float right?
Intelligence is almost useless for those who have nothing else! Email: caiokf@gmail.com