Reply
Slim websites ?
Old 03-21-2007, 02:15 AM Slim websites ?
Junior Talker

Posts: 2
Name: renier
Hi everyone.
I started my journey on HTML and whatever might follow about 1 month ago. So I am still very new, and eager to learn, so expect some more questions in the near future.

I allready have one question. I see some websites, like webmaster-talk, and yahoo, that fills my whole screen (regardless of my resollution). Then I see others, like www.gamespy.com and www.gamespot.com, that has the bulk of the website almost centered into a frame (about 960px wide), and often they will have an advert of sorts running in the two "bars" of empty space at both sides of the "frame".

I would really like to know how that is done, if someone would be so kind.

Thanks in advance.
Renier
renier8 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-21-2007, 07:53 AM Re: Slim websites ?
chrishirst's Avatar
Super Moderator

Posts: 13,644
Location: Blackpool. UK
By using a "wrapper" container of a fixed size and centred to contain all the other elements

Code:
#wrapper {
    width:998px; /*998px approx for 1024 768px for 800 */
    margin:0px auto;
}
HTML Code:
<body>
<div id="wrapper">
<!-- all other elements -->
</div>
</body>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-21-2007, 12:08 PM Re: Slim websites ?
Junior Talker

Posts: 2
Name: renier
thank you.
renier8 is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 12:41 PM Re: Slim websites ?
madal's Avatar
Average Talker

Posts: 21
Location: Croatia
You are talking about two different approaches:

The first one is liquid ("fluid") layout. Liquid layouts are designed to be entirely flexible. As the browser window expands or contracts, the page's layout will follow suit, ensuring that the content fills the display at any window size...

Another one you are talking about is fixed ("ice") layout. The window width is constant and unchanging, no matter how large or small the user's browser window becomes...
It si contigent upon the designer's assumption of the width of the user's browser window. You cleverly noticed that fixed designs are often unkind to larger screen resolution....lot of unused white space
__________________
My humorous portal - niktitanik.com -

"The mouth which eats can not sing"
madal is offline
Reply With Quote
View Public Profile Visit madal's homepage!
 
Reply     « Reply to Slim websites ?
 

Thread Tools

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

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