Jump to content

Quick question with CSS

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
system32

system32

    Newbie

  • Members
  • PipPip
  • 24 posts
I would like to start to learn CSS and have a quick question. I want to create a white box in the center of my page where I can write things. How would I go about doing this? This is what I would like:

http://www.freecsstemplates.org/preview/vertical/

Thanks

#2
Roger

Roger

    If nothing goes right, go left.

  • Administrators
  • 718 posts

system32 said:

I would like to start to learn CSS and have a quick question. I want to create a white box in the center of my page where I can write things. How would I go about doing this? This is what I would like:

http://www.freecsstemplates.org/preview/vertical/

Thanks

Looking in the default.css, I see that they're using the following id:

/* Page */

#page {
	width: 900px;
	margin: 0 auto;
	background: #FFFFFF;
	padding: 40px 40px;
}


#3
Guest_johnny.dacu_*

Guest_johnny.dacu_*
  • Guests
Just an extension. dspin08 is right. But this code has an bug in IE6 to avoid it:
body{
[INDENT]text-align: center;[/INDENT]
}
#page{
[INDENT][COLOR="silver"]width: 900px;
	margin: 0 auto;
	background: #FFFFFF;
	padding: 40px 40px;[/COLOR]
text-align: left;
[/INDENT]
}


#4
ManZzup

ManZzup

    Newbie

  • Members
  • PipPip
  • 10 posts
do you wanna write things
or write and save things for the visitors?