4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 CSS Aligning
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Kdawg
Senior WebHelper
Senior WebHelper


Joined: 21 Apr 2003
Posts: 153

PostPosted: Tue Apr 20, 2004 10:47 pm (20 years ago) Reply with QuoteBack to Top

Im working on a website and im using css to postion things on the page. The problem im having is when I change the resolution they move and they need to stay aligned to an image in the background. If someone wants to see the layout and what I mean pm me. I dont want to show too many people the layout since the site hasnt launched yet.
OfflineView User's ProfileFind all posts by KdawgSend Personal Message
Robert Wellock
WebHelper
WebHelper


Joined: 18 Jan 2002
Posts: 61
Location: Yorkshire - UK

PostPosted: Wed Apr 21, 2004 10:12 am (19 years, 12 months ago) Reply with QuoteBack to Top

Better still, I am too lazy to PM you... So if you PM me I might have a look if you have not solved the issue.

________________________________
};-) http://www.xhtmlcoder.com/
OfflineView User's ProfileFind all posts by Robert WellockSend Personal MessageVisit Poster's Website
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Wed Apr 21, 2004 3:33 pm (19 years, 12 months ago) Reply with QuoteBack to Top

are you using absolute or relative positioning? If you're using relative (the default), try changing to absolute and position everything according to the left and top of the screen.

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Kdawg
Senior WebHelper
Senior WebHelper


Joined: 21 Apr 2003
Posts: 153

PostPosted: Thu Apr 22, 2004 1:11 am (19 years, 12 months ago) Reply with QuoteBack to Top

adam wrote:
are you using absolute or relative positioning? If you're using relative (the default), try changing to absolute and position everything according to the left and top of the screen.

Thats what I did, but when you change the resolution the pixels from the sides change and the background image doesnt.
OfflineView User's ProfileFind all posts by KdawgSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Thu Apr 22, 2004 7:33 am (19 years, 12 months ago) Reply with QuoteBack to Top

Can you PM me the link to the page? I'll take a look

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Kdawg
Senior WebHelper
Senior WebHelper


Joined: 21 Apr 2003
Posts: 153

PostPosted: Mon Apr 26, 2004 7:28 pm (19 years, 11 months ago) Reply with QuoteBack to Top

Everything is good now thanks to adam exept one thing. I can get my main table to center in IE. I set the margins to auto and they dont work. Any ideas?
OfflineView User's ProfileFind all posts by KdawgSend Personal Message
GXEman
Junior WebHelper
Junior WebHelper


Joined: 07 May 2003
Posts: 27
Location: Athens, GA

PostPosted: Wed Apr 28, 2004 3:01 am (19 years, 11 months ago) Reply with QuoteBack to Top

Out of curiosity what did you do to fix it?

________________________________
Freshfemi.net
Too Cool For a Dot Com
OfflineView User's ProfileFind all posts by GXEmanSend Personal Message
Robert Wellock
WebHelper
WebHelper


Joined: 18 Jan 2002
Posts: 61
Location: Yorkshire - UK

PostPosted: Wed Apr 28, 2004 10:03 am (19 years, 11 months ago) Reply with QuoteBack to Top

Well, obviously it won't centre in M$ Explorer if you set the margins to auto since it is a recognized bug in that browser. I haven't seen the code so I am working blindfold.

________________________________
};-) http://www.xhtmlcoder.com/
OfflineView User's ProfileFind all posts by Robert WellockSend Personal MessageVisit Poster's Website
Kdawg
Senior WebHelper
Senior WebHelper


Joined: 21 Apr 2003
Posts: 153

PostPosted: Wed Apr 28, 2004 11:59 am (19 years, 11 months ago) Reply with QuoteBack to Top

So how do you center in IE?
OfflineView User's ProfileFind all posts by KdawgSend Personal Message
Robert Wellock
WebHelper
WebHelper


Joined: 18 Jan 2002
Posts: 61
Location: Yorkshire - UK

PostPosted: Wed Apr 28, 2004 3:08 pm (19 years, 11 months ago) Reply with QuoteBack to Top

CSS hacks normally if you aren't using something like <center> or negative margins or converting block to inline.

________________________________
};-) http://www.xhtmlcoder.com/
OfflineView User's ProfileFind all posts by Robert WellockSend Personal MessageVisit Poster's Website
ScottB
Junior WebHelper
Junior WebHelper


Joined: 04 Jul 2005
Posts: 4
Location: Britain

PostPosted: Mon Jul 04, 2005 1:46 pm (18 years, 9 months ago) Reply with QuoteBack to Top

If you use both margin:auto and text-align:center on an table, margin:auto will center the standard-compliant and text-align will center M$IE, but I guess if you say they conflict, i'm not sure what to suggest.
OfflineView User's ProfileFind all posts by ScottBSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.290766 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme