Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i keep my elements in one place

Status
Not open for further replies.
Hi scorpyun2001,

I don't understand what you mean with "changing the text size". Do you mean somewhere in the style settings or do you mean when the user change the browser fonts?

Your problem might be your style settings: I see a lot of classes with different settings of "margin-left" and "margin-top" These settings are responsable for the way the ellements are positioned. I don't know if this is your meaning, but you can start with changing these settings to zero or another value, so you can see what will happen after these changes.

Do also read this site (see links below) about CSS. The margin settings has also a relation with the "position" settings (static, relative, absolute etc.) The default "position" is "static"




Hope this helps,
Erik

<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
I forgot to say that you can try to set the elements with an absolute position :

margin-top: ..px;
margin-left: ..px;
position: absolute;

Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
what i meant was if you are in IE go to view/text size/medium (or large, larger, etc.)

when i change this the little divs that i made and the table too, are no longer aligned
 
Yes , I see what happens, I also now know that you use IE5.5. or higher.

I tested your site with IE 4.0 and there all the elements are &quot;all over the place&quot; no matters if I change the text size.

There no single solution for your problem. In think you just have to re-design your margins settings (adding the position) as I said fore. You have such a lot of different margins-settings (including nagative values) where I think your problems begin.

You can also try to set your text like Name, email adress, etc. in a block with the margins set.

Good luck,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
could you explain to me about margins and the like. or at least point me in the right direction. i have been learning HTML/CSS/JavaScript for about 3 months. I have been learning from
but they didnt have anything on the site to assist me with this problem. i know theres got to be a way to fix this because i change font size on other sites like yahoo and netscape and although there is somewhat of a displacement the elements dont become unaligned and all discombobulated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top