|
Lazykatz -> RE: help.. stylesheet coding (1/18/2005 2:23:55)
|
Thanks c1sissy, I am also tired..lol of finally trying to reconstruct a web site that started as a simple something to when bored, into a massive migraine that will not go away anytime soon. I currently do not have a page online, but I can tell/show you what I am working with, I think I found it with one of your post here in CSS forum looking for tutorials and or template of CSS/stylesheets. http://css.maxdesign.com.au/selectutorial/steps/step22.htm I have managed to get most of the colors, fonts, background images and layout (similar to above with colors of existing site), and now I'm trying to go outside my little experience with css and accomplish the rest. BTW, I have used alot of your links here for help.. TY I've also been visiting http://positioniseverything.net/ and http://www.csscreator.com/ along with a few other links from here. The only thing I did change is dropped everything into a table of 780px I did this, looked at it in all browsers, except Opera, at different res's and so far, the template is validated with no errors in HTML-Kit with using HTML-tidy, and it looks good in everything, but one flaw in explorer that doesn't concern me. I have a line on my site best viewed w/explore, I'll put a strike thru that when I'm done..lol I will post a page sometime in the very near future, here is a copy of code that I've been working with. body
{
margin: 0;
padding: 0;
font-size: 95%;
font-family: georgia, times, "times new roman", serif;
color: #000;
background-color: #fff;
}
a:link { color: #036; }
a:visited { color: #066; }
a:hover, a:active
{
color: #fff;
background-color: #036;
}
div#banner
{
color: #fff;
background-color: #333;
border-bottom: 1px solid #000;
}
div#banner h1
{
margin: 0;
padding: .3em 0 .3em .5em;
font-size: 2.2em;
font-weight: normal;
}
div#container
{
background-image: url(nav_col_base.jpg);
background-repeat: repeat-y;
}
div#container2
{
background-image: url(more_col_base.jpg);
background-repeat: repeat-y;
background-position: right;
}
div#navigation
{
float: left;
width: 150px;
padding-top: 2em;
}
div#navigation ul
{
list-style-type: none;
padding: 0;
margin: 0;
}
div#navigation ul li { margin-top: 4px; }
#navigation ul li a
{
display: block;
width: 135px;
padding: 3px 5px 3px 10px;
text-decoration: none;
color: #000;
background-image: url(nav_base.jpg);
background-repeat: repeat-y;
}
#navigation ul li a:hover
{
color: #fff;
background-color: #ccc;
background-image: url(nav_base2.jpg);
background-repeat: repeat-y;
}
div#more
{
float: right;
width: 160px;
margin: 0;
padding: 2em 10px 0 0;
color: #fff;
}
div#more h3
{
margin-top: 0;
color: #fff;
padding: .2em;
background-image: url(more_base.jpg);
background-position: right;
background-repeat: repeat-y;
}
div#content
{
margin-left: 190px;
margin-right: 200px;
}
div#content h2
{
font-size: 2em;
color: #036;
margin: 0;
padding-top: 1em;
font-weight: normal;
}
div#content { line-height: 150%; }
#cleardiv
{
clear: both;
height: 1em;
}
div#footer
{
clear: both;
padding: .5em 1em;
border-top: 1px solid #999;
text-align: right;
}
div#footer ul
{
padding: 0;
margin: 0;
list-style-type: none;
}
div#footer li
{
display: inline;
margin-right: 1em;
} Like I said above, this is a long overdue reconstruction of a mess. The reason I want to use div#, block, or now includes, is I have iframes to get rid of, one is for random quote, and it has over 400 lines of text and script, don't want it in html of every page. If you view my site, there is 6 iframes on homepage, 5 on links pages that I want to eliminate, I plan to keep the top frame, there is 4 subwebs, 2 new subwebs coming, and I'm combining everything into one site, hopefully close to what it looks like now, but purrrrrfect. YES I'm nutz, new site on paper is around 700 pages(so far), the more I can get into the stylesheet(s), less I'll need to do per page. One fallback I do have, I can't use ASP, I'm on Linux. Now that you said I may be asking how to use includes, it tells me to start looking for tutorials.. etc. So I plan to keep coming here, using search of forums, asking minimum questions to the FP masters, I hope, to accomplish this. Thanks Again, Grizz [8D] P.S I know I'm tired, look at this novel I just scratched out of the hole in my head.
|
|
|
|