CSS Positioning

Soldato
Joined
26 Nov 2005
Posts
3,839
Location
Doon the Bay (Newcastle)
Hi,

Having some trouble with IE displaying the positioning of login box and contact form (both wrapped in divs) which display perfectly fine on firefox.

http://www.tmet18.co.uk/Cosycon/login.php

http://www.tmet18.co.uk/Cosycon/contact.php

Please have a look, both display fine in FF but the login box goes back to where it once was and the contact in some crazy position down at the bottom.

This is taken from my CSS sheet

login
{
position:absolute;
margin-left: 420px;
margin-top: -420px;
}

contact
{
position:absolute;
margin-left: 200px;
margin-top: -610px;
background-image:url(images/CClogoback.gif);
background-repeat:repeat

}

Thanks for looking
 
Personally to save messing about I'd just use divs, as it's probably an obscure IE bug with absolute positioning that's causing you issues.

I'd simply have a wrapper to hold the menu/content and then 2 divs - displayed inline, one for the menu and one for the content.

:)
 
Last edited:
I'd be surprised if you get much business through that site. If you turn images off, every page looks like this:

cosyconferences.png


That is what a search engine is going to see. That's why having all your content within images is a really bad idea.
 
I'd be surprised if you get much business through that site. If you turn images off, every page looks like this:

cosyconferences.png


That is what a search engine is going to see. That's why having all your content within images is a really bad idea.

It's an assignment which i started yesterday and need the formatting for a presentation that im doing today, doesn't really matter that it is all images, i just need to walkthrough what i pan to do with it then code it in the next week.

Going to present it on my laptop supporting FF anyway.

:cool:
 
Your problem is that IE doesn't support custom tags so when it sees <login>, it doesn't know what it is and ignores it.


Right ok, do i need to add the '#' to the CSS for it to pick it up then?

Will give it a shot anyway.
 
Personally to save messing about I'd just use divs, as it's probably an obscure IE bug with absolute positioning that's causing you issues.

I'd simply have a wrapper to hold the menu/content and then 2 divs - displayed inline, one for the menu and one for the content.

:)

Trying to use divs to align, just started using them in the last week or som but i think that's what im almost trying to do, hopefully Trip has picked up on he cause.
 
Yep that has worked fine thanks, oh and Mattus, cheers, forgot to put my aref's in at the bottom. K presentation about to begin. :(
 
Back
Top Bottom