-
1. Re: Beginner CSS confusion
Nancy O. Feb 25, 2010 12:52 PM (in response to onefiftymph)There is no such CSS property as align center. This isn't a DW thing. It's a W3C thing.
To center page(s) you need the following:
1) a valid document type (DW does this for you when you open a new HTML page),
2) a container width,
3) margin-right and margin-left of auto (browser defined)
.content-panel {
font-family: "Times New Roman", Times, serif;
background-color: #FFF;
padding: 15px;
height: 500px;
width: 800px;
margin:0 auto; /**centers in modern browsers**/
}Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
2. Re: Beginner CSS confusion
onefiftymph Feb 25, 2010 1:13 PM (in response to Nancy O.)Thanks Nancy... that's an easy fix... (How'd you get so smart?)
Opinions on whether my css looks "normal", given the 3 link styles/colors I'm trying to accomplish?
-
3. Re: Beginner CSS confusion
Nancy O. Feb 25, 2010 1:22 PM (in response to onefiftymph)For best results define your links in the following sequence: aLiVHA -- a, link, visited, hover, active.
.header a {text-decoration:none)
.header a:link {color: #FC9}
.header a:visited {color: #996}
.header a:hover {color: #FFF}.header a:active, .header a:focus {color: #FC6}
Repeat the same for other links your site.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
4. Re: Beginner CSS confusion
onefiftymph Feb 25, 2010 2:32 PM (in response to Nancy O.)thanks Nancy


