Orionsbelter Posted August 24, 2009 Share Posted August 24, 2009 Ok, i want to make a table or box, that is 800 width and 450 height with a background image called bg.jpg then i want to float two input boxes and a button however i need them to float at the correct point in all broswer how can i do that? Link to comment https://forums.phpfreaks.com/topic/171613-float-and-table-help-please/ Share on other sites More sharing options...
DaiLaughing Posted August 24, 2009 Share Posted August 24, 2009 Don't use float? Use a DIV for the main box relatively positioned presumably. Inside have the other elements. You could position them absolutely, use align, margins or any one of a number of techniques depending on where you want them. Link to comment https://forums.phpfreaks.com/topic/171613-float-and-table-help-please/#findComment-905052 Share on other sites More sharing options...
haku Posted August 24, 2009 Share Posted August 24, 2009 Or you could float them, which 99.9% of the time is better than absolutely positioning them. Anyways, without specifics, it's hard to give you specific advice. But basically you float your elements, and use margins to position it. Spend some time studying the box model - a knowledge of how it works is essential to positioning elements with CSS. Link to comment https://forums.phpfreaks.com/topic/171613-float-and-table-help-please/#findComment-905120 Share on other sites More sharing options...
BLaZuRE Posted August 25, 2009 Share Posted August 25, 2009 Also, remember that IE messes up the box model, so I'd rather go with floating any day. (All the browsers seem to accurately support floating.) Link to comment https://forums.phpfreaks.com/topic/171613-float-and-table-help-please/#findComment-905574 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.