Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 05-04-2009, 10:47 AM Resolution problem
Novice Talker

Posts: 5
Name: Damian
Location: Perth, Australia
Trades: 0
Hi all,

Was hoping you could help me as im pretty amatuer.

Why is it that my sites css changes with resolution change.

I look @ it on 1680x1050 in comparison to 1024x768 and the alignment is different.

Any suggestions on how to resolve this?

Thanks in advance.
dlusiondone is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-04-2009, 10:54 AM Re: Resolution problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Gee... let me get my crystal ball...

Lets see a URL or ALL the code, there could be a LOT of reasons for it but impossible to know w/o seeing it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-04-2009, 10:57 AM Re: Resolution problem
Novice Talker

Posts: 5
Name: Damian
Location: Perth, Australia
Trades: 0
oh sorry of course, URL: www.skopeentertainment.com

Thanks.
dlusiondone is offline
Reply With Quote
View Public Profile
 
Old 05-04-2009, 11:03 AM Re: Resolution problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Ok, thanks.
Do you want it centered ?

The problem is your use of position:relative. The flash is being positioned relative to it's nearest positioned ancestor, in this case, the header. I don't see a need to set that to position: relative anyway.

If you want the flash centered, put it inside another div, center that div by giving it a defined width and using margin: 0 auto (adjust the 0 for top and bottom margins as needed). That will center it no matter what resolution is being used.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-04-2009, 01:14 PM Re: Resolution problem
Novice Talker

Posts: 5
Name: Damian
Location: Perth, Australia
Trades: 0
Yeah its the centering i was looking for, thanks LnRed.

Could you possibly have another look for me: www.skopeentertainment.com as i've ammended the code.

The height of everything stays consistent with resolution change but for some reason it slides left to right with res change?

Any suggestions?

Thanks again in advance
dlusiondone is offline
Reply With Quote
View Public Profile
 
Old 05-04-2009, 01:22 PM Re: Resolution problem
Average Talker

Posts: 28
Name: TJ Phippen
Trades: 0
Try this, Put everything inside a div, like:

Code:
<body>
<div style="margin: auto;">
EVERYTHING
</div>
</body>
Though I'd suggest using a stylesheet for the actual css.
I center pretty much every site I do, so feel free to visit my site/work & steal any little bits of code you need.
__________________
| | TJ PHIPPEN | |
Please login or register to view this content. Registration is FREE

| Definition Redefining Speed, Quality & Satisfaction!
| Call Me: (435) 225-6121 | Email Me:
Please login or register to view this content. Registration is FREE
siforek is offline
Reply With Quote
View Public Profile
 
Old 05-04-2009, 03:28 PM Re: Resolution problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
It appears that now you have everything set to position:absolute - that's an even worse method than your first one.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-05-2009, 07:01 PM Re: Resolution problem
Novice Talker

Posts: 5
Name: Damian
Location: Perth, Australia
Trades: 0
Thanks siforek but that solution isn't quite what i'm looking for, everything gets centered but the logo & the flash elements left align.

I used your method ladynRed and it worked as far as centering is concerned but when i change the resolution it still shifts. I'm assuming this is happening because the logo & the flash elements are two different lengths.

I think what i need to do is centre the logo to the stage and centre the flash element to the logo so that wherever the logo is placed, the flash will centre to the logo.

Hope this is clear. Any suggestions.....?

Thanks in advance.
dlusiondone is offline
Reply With Quote
View Public Profile
 
Old 05-05-2009, 11:22 PM Re: Resolution problem
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
Your header is too wide and is centering separately form the content.
place both the content and header in a div and center it like LadynRed says above
Quote:
center that div by giving it a defined width and using margin: 0 auto (adjust the 0 for top and bottom margins as needed). That will center it no matter what resolution is being used.
Make the header and content the same width. I would scale the header to the width of the content below.
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 05-06-2009, 05:49 AM Re: Resolution problem
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
Quote:
Originally Posted by dlusiondone View Post
Hi all,

Was hoping you could help me as im pretty amatuer.

Why is it that my sites css changes with resolution change.

I look @ it on 1680x1050 in comparison to 1024x768 and the alignment is different.

Any suggestions on how to resolve this?

Thanks in advance.
There are many more things to a website besides an 'Html Editor'...Use Google...

It's Your Friend...

-Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to Resolution problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.51445 seconds with 12 queries