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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 11-23-2006, 10:15 PM site layout screwy
Extreme Talker

Posts: 217
Trades: 0
My website looks fine...except on widescreen monitors. then the layout gets completly screwed. Not sure why.

Basicly my layout is split up into 4 main peices. the main content box, the sidebar, the header and the footer. the footer seems to work fine all the time, same with the header. its the content box and sidebar i have troubles with

both content and sidebar are set up the same. they are made of 4 divs, one for the top peice, one where the background image for the box goes, one where all the content goes and one for the bottom peice. basicly it looks like this:

HTML Code:
<div id="rightcontainer">
      <div id="contenttop">
      </div>
       <div id="contentbg">
               <div id="content">
               <!--content goes here-->
               </div>
       </div>
       <div id="contentbottom">
       </div>
</div>
that is essentially what the main content box looks like. The sidebar is just the same but it is in another div called leftcontainer (or containerleft, cant remmber but its irrelivent)

Here is my site: http://www.helmgames.com
and here is the pic of what it looks like when it goes screwy: http://graphicselite.com/stuff/lolAtHG.jpg

also here is my css:
Code:
body {
    font-family: Arial;
    color: #414141;
    }
a {
    color: #34beed;
    text-decoration: underline;

}
a:hover {
    color: #90cd31;
    text-decoration: underline;
}

#contentbg {
    width: 700px;
    float: left;
    background: url(images/contentbg.jpg);
    margin-left: 20px;

}
#contenttop{
    width: 700px;
    float: left;
    height: 18px;
    background: url(images/contenttop.jpg);
    margin-left: 20px;
}
#contentbottom{
    width: 700px;
    float: left;
    height: 18px;
    background: url(images/contentbottom.jpg);    
    margin-left: 20px;
}
#content{
    width: 650px;
    float: left;
    margin-left: 20px;
    padding-left: 5px;
}
#containeright{
    float: right;
}
#containerleft{
    float:left;
}
#sidebarbg{
    width: 200px;

    background: url(images/sidebarbg.jpg);


}
#sidebartop{
    width: 200px;

    height: 20px;
    background: url(images/sidebartop.jpg);

}
#sidebarbottom{

    width: 200px;
    height: 20px;
    background: url(images/sidebarbottom.jpg);

}
#sidebarcontent{

    width: 150px;
    margin-left: 20px;
    padding-left: 5px;
    
    
}
#footer{
    clear: both;
    font-size: 9px;
    
}    

#boxart{
    float: left;
    padding-right: 15px;
    height: 260;
}
#gamearea{
    padding: 20px;
    margin-left: 20px;
}
#gamedesc{
    clear:both;
}
#thumbnails{
    width: 200px;
    height: 100px;

    padding-right: 10px;
    margin-right: 5px;

}
thanks in advance,
Slick
__________________

Please login or register to view this content. Registration is FREE
Slick Nick is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-24-2006, 12:08 AM Re: site layout screwy
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
this maybe completely off my rocker but possibly putting a size for each in the css such as
HTML Code:
#containeright{
    float: right;
    width: 10%;
}
#containerleft{
    float:left;
    width: 90%;
}
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Old 11-27-2006, 12:36 PM Re: site layout screwy
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
If you use float you MUST define a width !
__________________
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 11-28-2006, 11:20 AM Re: site layout screwy
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Centering his page doesn't seem to be the issue.
__________________
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 11-28-2006, 08:42 PM Re: site layout screwy
Extreme Talker

Posts: 188
Trades: 0
This problem only occurs when using smaller screen res.

Because your using fixed width for your content, on small res screens it forces the right content panel down in order to keep the widths you have set.

Change the fix widths to % something like......

Code:
#content{
    width: 80%;
    float: left;
    margin-left: 20px;
    padding-left: 5px;
}

#sidebarbg{
    width: 20%;

    background: url(images/sidebarbg.jpg);


}
This change instead of forcing the right float down will resize the the content areas accordingly.
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
Old 11-28-2006, 08:45 PM Re: site layout screwy
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
And if you use float:left with a left margin, and your small screen is using an IE-based browser, you're going to wind up with the double-float margin bug !

However, using percentages is definitely the way to go.
__________________
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 11-30-2006, 09:39 PM Re: site layout screwy
Extreme Talker

Posts: 217
Trades: 0
actually i know about the small screen resolution screw ups...

but i need to fix the widescreen monitor screw ups...

also i cant imagine how centering could be the issue. >_>
__________________

Please login or register to view this content. Registration is FREE
Slick Nick is offline
Reply With Quote
View Public Profile
 
Old 12-01-2006, 03:16 PM Re: site layout screwy
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Did you fix it ? I looked at it at 1280x1024 in FF and IE 6 and it looks ok.
However, you really do need to define a BG color on your <body>. My default desktop bk color is pale pink. What I see in IE when I visit your site is white boxes on a pink background. I know I'm not alone in changing the default desktop colors, and, for accessibility purposes, it's always good to define a BG color.
__________________
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 12-01-2006, 06:49 PM Re: site layout screwy
Extreme Talker

Posts: 217
Trades: 0
well il get my friend to test the site out today to see if it does look proper on a widescreen monitor (seems to look good no matter what res you use on a normal monitor)

as for that last tip, il remember that
__________________

Please login or register to view this content. Registration is FREE
Slick Nick is offline
Reply With Quote
View Public Profile
 
Old 12-02-2006, 05:43 PM Re: site layout screwy
Extreme Talker

Posts: 217
Trades: 0
well aparantly the layout is still messed for widescreen users
__________________

Please login or register to view this content. Registration is FREE
Slick Nick is offline
Reply With Quote
View Public Profile
 
Old 12-02-2006, 07:46 PM Re: site layout screwy
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
how wide is 'wide screen' ???
__________________
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 12-04-2006, 12:30 AM Re: site layout screwy
Extreme Talker

Posts: 217
Trades: 0
im not sure, all i know about hte problem is what it looks like (the screenshot in the original post) and that I have been having reports from users with widescreen monitors saying it looks like that
__________________

Please login or register to view this content. Registration is FREE
Slick Nick is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to site layout screwy
 

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.33833 seconds with 12 queries