StripedTigress
01-16-2008, 08:01 AM
I have basically taught myself how to create websites by playing around with HTML. For several years I was happy with the different things I could do, but I am tired of typing code.
I found several websites with CSS layout tutorials, and decided to try my hand at creating and using one. I have used simple CSS for links and text color, but I think I am way in over my head now.
I found a site with free CSS layouts to download, and I found a nice one I like. I created my graphics, and made changes as far as that and the colors. Here is where I am lost:
In creating the pages with HTML, I know how to link the pages using tables and frames. I can't figure out how to do the same thing with the CSS layout. Instead of redoing all of my website pages, I want to use the CSS layout in the existing pages. How do I make it work? Any help is greatly appreciated.
The site I want to "upgrade" is here: fiction-place.com/bots
My CSS layout is:
* {margin: 0;
padding: 0;}
body {
background-color: #000000;
color: #CD3700;
background-image: url(images/bodybg.jpg);
background-repeat: repeat-y;
background-position: center;
background-attachment: fixed;
}
#container {
width: 896px;
padding:3px;
margin: 0px auto;
font-family: Arial, Helvetica, sans-serif;
font-size: .8em;
color: #CD3700;
background-color: #000000;
}
#header {margin-top: 1px;
background-image: url(images/header2.jpg);
height: 320px;
border: 1px solid #A78D84;
}
#left {
float: left;
width: 155px;
color: #CD3700;
background-color: #000000;
padding: 5px;
}
#right {
background-color: #000000;
color: #CD3700;
float: right;
width: 155px;
background-position: right top;
padding: 5px;
}
#content {
margin-left: 170px;
margin-right: 170px;
margin-bottom: 5px;
color: #CD3700;
background-color: #000000;
padding: 20px;
border: 0px solid #A78D84;
}
#footer {
clear: both;
background-color: #000000;
color: #CD3700;
padding: 4px;
border: 1px solid #A78D84;
text-align: center;
}
.imageleft{
float: left;
margin-right: 7px;
margin-bottom: 1px;
}
p{
margin-top: 15px;
margin-bottom: 15px;
}
blockquote{
margin-top: 15px;
margin-bottom: 15px;
padding: 30px;
border: 1px dotted #A78D84;
background-image: url(images/swordtest.gif);
background-repeat: no-repeat;
}
h1{
background-color: #000000;
padding: 5px;
font-size: 1.3em;
color: #CD3700;
margin-top: 5px;
margin-bottom: 15px;
border-top: 1px solid white;
border-bottom: 1px solid white;
}
h2{
background-color: #000000;
padding: 5px;
font-size: 1.3em;
color: #CD3700;
margin-top: 15px;
margin-bottom: 15px;
border-top: 1px solid white;
border-bottom: 1px solid white;
}
.list {
margin-left: 25px;
list-style-image: url(images/redrose.gif);
margin-top: 30px;
}
a:link {
color: #FF3300;
background-color: inherit;
}
a:visited {
color: #FFFFFF;
background-color: inherit;
}
a:hover {
color: #336600;
background-color: inherit;
}
a:active {
color: #336600;
background-color: inherit;
}
#navlist
{
height: 2.6em!important;
height: 2.7em;
margin-top: 7px;
padding: 1.7em 0em .3em .4em;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
border: 1px solid #FFFFFF;
}
#navlist a, #navlist a:link, #navlist a:visited
{
border: 1px solid #CCCCCC;
padding: 1.2em;
padding-left: 0.5em;
padding-right: 0.5em;
color: #FFFFFF;
text-decoration: none;
}
#navlist a:hover, #navlist a:active, #navlist a:focus
{
border: 1px solid #FFFFFF;
padding: 1.1em;
padding-left: 0.5em;
padding-right: 0.5em;
text-decoration: none;
color: #336600;
}
#navlist li
{
padding-right: 1px;
display: inline;
font-size: 1em;
}
#navlist ul
{
margin: 0px;
padding: 0px;
}
#navlist #active a {
background-color: #000000;
color: #336600;
font-size: 1em;
font-weight: bold;
}
I found several websites with CSS layout tutorials, and decided to try my hand at creating and using one. I have used simple CSS for links and text color, but I think I am way in over my head now.
I found a site with free CSS layouts to download, and I found a nice one I like. I created my graphics, and made changes as far as that and the colors. Here is where I am lost:
In creating the pages with HTML, I know how to link the pages using tables and frames. I can't figure out how to do the same thing with the CSS layout. Instead of redoing all of my website pages, I want to use the CSS layout in the existing pages. How do I make it work? Any help is greatly appreciated.
The site I want to "upgrade" is here: fiction-place.com/bots
My CSS layout is:
* {margin: 0;
padding: 0;}
body {
background-color: #000000;
color: #CD3700;
background-image: url(images/bodybg.jpg);
background-repeat: repeat-y;
background-position: center;
background-attachment: fixed;
}
#container {
width: 896px;
padding:3px;
margin: 0px auto;
font-family: Arial, Helvetica, sans-serif;
font-size: .8em;
color: #CD3700;
background-color: #000000;
}
#header {margin-top: 1px;
background-image: url(images/header2.jpg);
height: 320px;
border: 1px solid #A78D84;
}
#left {
float: left;
width: 155px;
color: #CD3700;
background-color: #000000;
padding: 5px;
}
#right {
background-color: #000000;
color: #CD3700;
float: right;
width: 155px;
background-position: right top;
padding: 5px;
}
#content {
margin-left: 170px;
margin-right: 170px;
margin-bottom: 5px;
color: #CD3700;
background-color: #000000;
padding: 20px;
border: 0px solid #A78D84;
}
#footer {
clear: both;
background-color: #000000;
color: #CD3700;
padding: 4px;
border: 1px solid #A78D84;
text-align: center;
}
.imageleft{
float: left;
margin-right: 7px;
margin-bottom: 1px;
}
p{
margin-top: 15px;
margin-bottom: 15px;
}
blockquote{
margin-top: 15px;
margin-bottom: 15px;
padding: 30px;
border: 1px dotted #A78D84;
background-image: url(images/swordtest.gif);
background-repeat: no-repeat;
}
h1{
background-color: #000000;
padding: 5px;
font-size: 1.3em;
color: #CD3700;
margin-top: 5px;
margin-bottom: 15px;
border-top: 1px solid white;
border-bottom: 1px solid white;
}
h2{
background-color: #000000;
padding: 5px;
font-size: 1.3em;
color: #CD3700;
margin-top: 15px;
margin-bottom: 15px;
border-top: 1px solid white;
border-bottom: 1px solid white;
}
.list {
margin-left: 25px;
list-style-image: url(images/redrose.gif);
margin-top: 30px;
}
a:link {
color: #FF3300;
background-color: inherit;
}
a:visited {
color: #FFFFFF;
background-color: inherit;
}
a:hover {
color: #336600;
background-color: inherit;
}
a:active {
color: #336600;
background-color: inherit;
}
#navlist
{
height: 2.6em!important;
height: 2.7em;
margin-top: 7px;
padding: 1.7em 0em .3em .4em;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
border: 1px solid #FFFFFF;
}
#navlist a, #navlist a:link, #navlist a:visited
{
border: 1px solid #CCCCCC;
padding: 1.2em;
padding-left: 0.5em;
padding-right: 0.5em;
color: #FFFFFF;
text-decoration: none;
}
#navlist a:hover, #navlist a:active, #navlist a:focus
{
border: 1px solid #FFFFFF;
padding: 1.1em;
padding-left: 0.5em;
padding-right: 0.5em;
text-decoration: none;
color: #336600;
}
#navlist li
{
padding-right: 1px;
display: inline;
font-size: 1em;
}
#navlist ul
{
margin: 0px;
padding: 0px;
}
#navlist #active a {
background-color: #000000;
color: #336600;
font-size: 1em;
font-weight: bold;
}