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
borders around an html webpage?
Old 11-14-2010, 03:41 PM borders around an html webpage?
Junior Talker

Posts: 2
Name: Mavis Everett
Trades: 0
So I'm making a website, and i want the border to shrink as the browser does..
like in this website http://weheartit.com/

when you minimize the page, the left border gets smaller and then nonexistant. How do I achieve this?

thanks
mayeve is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-14-2010, 04:19 PM Re: borders around an html webpage?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
What border are you talking about?
Use percentages for your widths.
__________________
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-14-2010, 04:29 PM Re: borders around an html webpage?
Junior Talker

Posts: 2
Name: Mavis Everett
Trades: 0
i did, but whether i use 20% or 40% its always just 100px! (the 100px part is a guesstimation, point being that its always the same for some reason :S)
mayeve is offline
Reply With Quote
View Public Profile
 
Old 11-15-2010, 07:00 AM Re: borders around an html webpage?
Kelpie's Avatar
Skilled Talker

Posts: 82
Name: Andrew
Location: SW Scotland
Trades: 0
If you mean the left and right margins of the page, this is done using css to center a container element
HTML Code:
<html>
<head>
body {
    text-align:center;
}
#container {
    width: 960px;
    margin: 0 auto;
    text-align: left;
}
</head>

<body>
<div id="container">
all the content goes here
</div>
</body>
</html>

Last edited by Kelpie; 11-16-2010 at 06:12 AM..
Kelpie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to borders around an html webpage?
 

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