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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.