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
Resizing an internet browser window problem
Old 01-25-2010, 07:20 PM Resizing an internet browser window problem
vultren's Avatar
Webmaster Talker

Posts: 583
Name: Tony
Location: Seattle Washington
Trades: 1
I am coding this site, but when I re-size my window, the background image moves however the logo and other images don't. I'll post my code, if you need the HTML, let me know.

Very frustrating.


Code:
@charset "utf-8";
/* CSS Document */

body
{background-image:url(background.png);
background-repeat:no-repeat;
background-position:center;
background-position:top;
width:1024px;
height:624px;

}

.logo
{
    position:absolute;
    left:340px;
    top:50px;
    
    
}

.contact
{
    position:absolute;
    left:946px;
    top:103px;
    

    
}

.about
{
    position:absolute;
    left:840px;
    top:103px;
    

    
}

.services
{
    position:absolute;
    left:1040px;
    top:103px;
    

    
}
__________________

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

I am here to give advice as well as learn.

Please login or register to view this content. Registration is FREE
.
vultren is online now
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-25-2010, 07:21 PM Re: Resizing an internet browser window problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Get rid of the position:absolute.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-25-2010, 07:23 PM Re: Resizing an internet browser window problem
vultren's Avatar
Webmaster Talker

Posts: 583
Name: Tony
Location: Seattle Washington
Trades: 1
then it just goes to the left of the screen...? I need it over that many pixels. Do I need to do a different position: ? Or what?

I'm kinda new to Css, but know enough to code.
__________________

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

I am here to give advice as well as learn.

Please login or register to view this content. Registration is FREE
.
vultren is online now
Reply With Quote
View Public Profile
 
Old 01-25-2010, 07:35 PM Re: Resizing an internet browser window problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Absolute means it is not part of the document flow and is not affected by other elements, so when you resize and they move the absolute ones don't


Use the document flow and margins or relative positioning to make the layout work, absolute positioning should be used sparingly or not at all if you do not understand the implications and HOW it really works.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-25-2010, 07:52 PM Re: Resizing an internet browser window problem
vultren's Avatar
Webmaster Talker

Posts: 583
Name: Tony
Location: Seattle Washington
Trades: 1
Thank you very much for the help. I just dont get it :/
__________________

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

I am here to give advice as well as learn.

Please login or register to view this content. Registration is FREE
.
vultren is online now
Reply With Quote
View Public Profile
 
Old 01-26-2010, 06:33 AM Re: Resizing an internet browser window problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.elated.com/articles/css-positioning/

http://www.barelyfitz.com/screencast...s/positioning/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-27-2010, 07:37 AM Re: Resizing an internet browser window problem
Xboxer360's Avatar
Experienced Talker

Posts: 36
Name: Dave
Location: Norwich, UK
Trades: 0
not 100% on this but change background postion to background-postion:center top;
Xboxer360 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Resizing an internet browser window 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.89294 seconds with 12 queries