Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 06-08-2007, 09:54 PM   #1 (permalink)
Contributing Member
 
factoring's Avatar
 
Join Date: 04-03-07
Location: Rhode Island
Posts: 312
iTrader: 1 / 100%
Latest Blog:
None

factoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nice
How do you center a web page?

Hey guys,

I just redesigned my site using css, but I can't find a working code to center my web page on the screen. Is there one or does it have to do with margins?

Thanks ahead of time.
factoring is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 06-08-2007, 10:03 PM   #2 (permalink)
Contributing Member
 
Join Date: 05-28-06
Location: India
Posts: 250
iTrader: 0 / 0%
cloudtrance is just really nicecloudtrance is just really nicecloudtrance is just really nicecloudtrance is just really nicecloudtrance is just really nicecloudtrance is just really nicecloudtrance is just really nicecloudtrance is just really nicecloudtrance is just really nice
Set margin attributes to your main wrapper / container div
cloudtrance is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-09-2007, 12:10 AM   #3 (permalink)
Contributing Member
 
factoring's Avatar
 
Join Date: 04-03-07
Location: Rhode Island
Posts: 312
iTrader: 1 / 100%
Latest Blog:
None

factoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nice
I am very new to css, so I am not quite sure what you mean?
factoring is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-09-2007, 12:51 AM   #4 (permalink)
Contributing Member
 
janhvizdak's Avatar
 
Join Date: 03-22-07
Location: Sicily
Posts: 372
iTrader: 0 / 0%
janhvizdak is liked by somebodyjanhvizdak is liked by somebodyjanhvizdak is liked by somebody
Use <center> and </center>, it's simple. You can play with margin, padding, but it will not work under every browser in many cases. Or check my signature (web design) and you'll see how it's done.
__________________
I work for the UK web design company.

We are hiring guys from London/UK! More information on thrusites.com/about/jobs

Last edited by janhvizdak : 06-09-2007 at 12:57 AM.
janhvizdak is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-09-2007, 03:00 AM   #5 (permalink)
Inactive
 
Join Date: 06-07-07
Posts: 11
iTrader: 0 / 0%
Latest Blog:
None

Bacanze is liked by many
Code:
margin-left:auto; margin-right:auto;
Bacanze is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-09-2007, 06:08 PM   #6 (permalink)
Contributing Member
 
factoring's Avatar
 
Join Date: 04-03-07
Location: Rhode Island
Posts: 312
iTrader: 1 / 100%
Latest Blog:
None

factoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nice
I have an div id="outer" for my html code. Then I close it after all the body html.

I have margin-left:auto;
margin-right:auto;
on the css page.

Does this make my page centered on the screen?
factoring is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-09-2007, 07:25 PM   #7 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,927
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
also try this:
Quote:
<body style="text-align: center">

<div id="PageWrapper">
.....
....
if that's not working, try adding the same style to the #PageWrapper div:
Quote:
<body style="text-align: center">

<div id="PageWrapper" style="text-align: center">
.....
....

hth
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-09-2007, 09:34 PM   #8 (permalink)
Contributing Member
 
factoring's Avatar
 
Join Date: 04-03-07
Location: Rhode Island
Posts: 312
iTrader: 1 / 100%
Latest Blog:
None

factoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nice
I tried them but it just moves my header and the text in my buttons over to the right. I redesigned my site using css, but no one taught me how to do it. I just learned from research. I doubt I did it correctly.

Thanks for trying to help.
factoring is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-11-2007, 11:07 PM   #9 (permalink)
Inactive
 
Join Date: 05-06-07
Posts: 85
iTrader: 0 / 0%
Latest Blog:
None

alainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the rough
Send a message via MSN to alainkun
Can you show us your CSS code?
alainkun is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2007, 05:17 PM   #10 (permalink)
Contributing Member
 
factoring's Avatar
 
Join Date: 04-03-07
Location: Rhode Island
Posts: 312
iTrader: 1 / 100%
Latest Blog:
None

factoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nice
Thanks for taking a look.

Quote:
div#header {
padding: 0px 0px 0px 0px;
margin-left:-10px;
margin-top:0px;
margin-bottom:0px;
left:0px;
top:0px;
z-index: 2;
}
div#form {
padding:0 0 0 0;
position:absolute;
left: 710px;
top: 155px;
z-index:2;
}
div#freequote {
padding:0 0 0 0;
position:absolute;
left: 712px;
top:160px;
z-index:4;
}
div#forms {
font-family: "Palatino Linotype";
font-size: 12px;
text-align: left;
position: absolute;
width:235px;
color:black;
font-weight:bold;
left: 725px;
top:200px;
z-index:5;
}
input {
padding:1px 0px 0px 3px;
}
body {
background: url(sell-my-structured-settlement.jpg) no-repeat;
background-color: #C1BA93;
width:975px;
margin-top:0px;
z-index:1
}
div#ssl {
position:absolute;
left:865px;
top:539px;
z-index:6;
background: url (ssl.gif) no-repeat;
}
div#ssl1 {
position:absolute;
left:865px;
top:515px;
z-index:6;
background:url (ssl.gif) no-repeat;
}


h2 {
padding:0 0 0 0;
font-family: "Palatino Linotype";
font-size: 17px;
font-weight: bold;
text-align: center;
color: green;
text-decoration: none;
width: 469px;
left: 210px;
top: 145px;
position: absolute;
z-index: 3;
}
div#maintext {
font-family: "Times New Roman", Times, serif;
font-size: 15px;
font-variant: normal;
text-align: left;
word-spacing: normal;
letter-spacing: normal;
color: #000000;
position:absolute;
width: 469px;
top: 187px;
left: 210px;
z-index:3;
}
div#maintext a:link {
text-decoration:none;
color:black;
font-weight:bold;
}
div#maintext a:hover {
text-decoration:none;
color:green;
font-weight:bold;
}
div#maintext a:visited {
text-decoration:none;
color:black;
font-weight:bold;
}
div#sponsored {
font-family: "Palatino Linotype";
font-size: 12px;
font-weight: bold;
font-size:14px;
color:black;
position:absolute;
top: 440px;
left: 24px;
z-index:3;
text-decoration:underline;
}
div#wentworth {
font-family: "Palatino Linotype";
font-size: 12px;
font-weight: bold;
font-size:14px;
color:green;
position:absolute;
top: 470px;
left: 24px;
z-index:3;
text-decoration: none;
}
div#wentworth a:link {
text-decoration:none;
color:green;
font-weight:bold;
}
div#wentworth a:hover {
text-decoration:none;
font-weight:bold;
color:black;
}
div#wentworth a:visited {
text-decoration:none;
font-weight:bold;
color:green;
}
ul {
font-family: "Palatino Linotype";
font-size: 12px;
font-weight: bold;
padding:0 0px 0 0;
margin:0 0 0 0;
top: 155px;
left: 8px;
position: absolute;
z-index:2;
list-style-type:none;
}
li a{
display: block;
width:145px;
height:25px;
padding: 8px 2px 0px 15px;
background: url(structured-settlement-cash.jpg) no-repeat;
text-decoration: none;
font-family: "Palatino Linotype";
font-size: 12px;
font-weight: bold;
text-decoration: none;
color:#666666;

}
li a:link {
text-decoration:none;
list-style-type:none;
}
li a:hover {
border: 0px solid #F6F7BD;
background:
url(structured-settlements.jpg) no-repeat;
color: white
}
div#footer {
font-family: "Palatino Linotype";
font-size: 10px;
color:black;
position:absolute;
top:1050px;
left:50px;
z-index:3;
text-decoration: none;
}
div#footer1 {
font-family: "Palatino Linotype";
font-size: 10px;
color:black;
position:absolute;
top:1050px;
left: 305px;
z-index:3;
}
div#footer1 a:link {
text-decoration:none;
color:green;
}
div#footer1 a:hover {
text-decoration:none;
color:black;
font-weight:bold;
}
div#footer1 a:visited {
text-decoration:none;
color:green;
}
div#fundingtext {
text-align:center;
font-weight:bold;
color:green;

}
div#requestform {
position:absolute;
left:350px;
top:200px;
color:black;
font-weight:bold;

}
div#contactform {
position:absolute;
left:350px;
top:450px;
color:black;
font-weight:bold;
}
div#contacttext {
position:absolute;
left:350px;
top:200px;
color:black;
width:250px;
}
h3 {
font-family: "Palatino Linotype";
font-size: 16px;
font-weight: bold;
text-align: center;
color: orange;
text-decoration: none;
z-index: 3;
}
h3 a:link {
color: orange;
font-weight:bold;
}
h3 a:hover {
color:black;
font-weight:bold;
}

h3 a:visited {
colorrange;
font-weight:bold;
}

div#archivetext {
position:absolute;
width: 75px;
left: 895px;
top: 185px;
font-family:"Palatino Linotype";
color:green;
text-decoration:underline;
font-weight:bold;
font-size:14px;

}
div#archivelink {
position:absolute;
width: 75px;
left: 895px;
top: 205px;
font-family:"Palatino Linotype";
color:black;
text-decoration:none;
font-weight:bold;
font-size:13px;

}
div#archivelink a:link {
colorrange;
font-weight:bold;
}
div#archivelink a:hover {
color:black;
font-weight:bold;
}
div#archivelink a:visited {
colorrange;
font-weight:bold;
}


div#recent {
position:absolute;
width: 95px;
left: 880px;
top: 325px;
font-family:"Palatino Linotype";
color:green;
text-decoration:underline;
font-weight:bold;
font-size:14px;

}
div#recentlink {
position:absolute;
width: 207px;
left: 770px;
top: 345px;
font-family:"Palatino Linotype";
color:black;
text-decoration:none;
font-weight:bold;
font-size:13px;

}
div#recentlink a:link {
color:green;
font-weight:bold;
}

div#recentlink a:hover {
color:black;
font-weight:bold;
}

div#recentlink a:link {
color:green;
font-weight:bold;
}
div#relatedpages {
position: absolute;
left:860px;
top:625px;
font-family:"Palatino Linotype";
font-size:14px;
font-weight:bold;
text-decoration:underline;
z-index:6;
}
div#relatedlinks {
position:absolute;
text-align:right;
left:725px;
top:650px;
width:225px;
font-family:"Palatino Linotype";
font-size:14px;
font-weight:bold;
text-decoration:none;
z-index:6;
}
div#relatedlinks a:link {
color:green;
font-weight:bold;
}
div#relatedlinks a:hover {
color:black;
font-weight:bold;
}
divrelatedlinks a:visited {
color:green;
font-weight:bold
}
factoring is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-16-2007, 06:29 AM   #11 (permalink)
Contributing Member
 
Join Date: 03-05-07
Posts: 72
iTrader: 0 / 0%
Latest Blog:
None

eshop600 is liked by many
<body style="text-align: center">

Thats will bloat the page and will be harder to change in the future, just do the same with the css file

body {text-align:center}
__________________
--------------
UK online shopping deals
--------------
eshop600 is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
your life center of it.. potchie Forum Lobby 17 12-23-2007 11:56 AM
Media Center PC kwvarga Computers & Internet 4 11-22-2007 02:42 AM
[css] How to center this site? mess_alex Coding Forum 7 01-27-2007 01:11 PM
Free Desktop software Page rank check multiple data center jeet SEO Forum 0 01-26-2007 11:58 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:13 PM.
© Copyright 2008 V7 Inc