News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Problem with the CSS

Started by deathwantsme, November 20, 2005, 02:52:14 PM

Previous topic - Next topic

deathwantsme

Im working on a CSS for my forum, and i cant figure out why part of it is silver when i dont think there is any silver left. The preveiw shows me that its how i want it, but in reality, its not how i want it. Could anyone look over my CSS and tell me whats wrong with it?

The preview is bleow. The green line is a seperator i drew to show the working CSS (outside the seperator) and what the preview looks like (inside the seperator)



/* Normal, standard links. */
a:link
{
   color: #ffffff;
   text-decoration: underline;
}
a:visited
{
   color: #ffffff;
   text-decoration: underline;
}
a:hover
{
   color: #cc0000;
   text-decoration: underline;
}

/* Navigation links - for the link tree. */
.nav, .nav:link, .nav:visited
{
   color: #ffffff;
   text-decoration: none;
}
a.nav:hover
{
   font-weight: bold;
   color: #cc0000;
   text-decoration: underline;
}

/* Tables should show empty cells. */
table
{
   empty-cells: show;
}

/* By default (td, body..) use Tahoma in black. */
body, td, th
{
   color: #ffffff;
   font-size: small;
   font-family: tahoma, sans-serif;
}

/* The main body of the entire forum. */
body
{
   background-color: #000000;
   margin: 0px;
   padding: 0px;
}

/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea, button
{
   font-size: 9pt;
   color: #000000;
   font-family: tahoma, sans-serif;
}

/* All input elements that are checkboxes or radio buttons. */
input.check
{
}

/* Selects are a bit smaller, because it makes them look even better 8). */
select
{
   font-size: 8pt;
   font-weight: normal;
   color: #000000;
   font-family: tahoma, sans-serif;
}

/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor
{
   height: 2px;
   border: 0;
   color: #ffffff;
   background-color: #000000;
}

/* A quote, perhaps from another post. */
.quote
{
   color: #000000;
   background-color: #cc0000;
   border: 2px solid #ffffff;
   margin: 1px;
   padding: 1px;
   font-size: x-small;
   line-height: 1.4em;
}

/* A code block - maybe even PHP ;). */
.code
{
   color: #ffffff;
   background-color: #cc0000;
   font-family: "courier new", "times new roman", monospace;
   font-size: x-small;
   line-height: 1.3em;
   /* Put a nice border around it. */
   border: 2px solid #ffffff;
   margin: 1px auto 1px auto;
   padding: 1px;
   width: 99%;
   /* Don't wrap its contents, and show scrollbars. */
   white-space: nowrap;
   overflow: auto;
   /* Stop after about 24 lines, and just show a scrollbar. */
   max-height: 24em;
}

/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader
{
   color: #ffffff;
   text-decoration: none;
   font-style: normal;
   font-weight: bold;
   font-size: x-small;
   line-height: 1.2em;
}

/* Generally, those [?] icons.  This makes your cursor a help icon. */
.help
{
   cursor: help;
}

/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction
{
   color: #cc0000;
}

/* The main post box - this makes it as wide as possible. */
.editor
{
   width: 96%;
}

/* Highlighted text - such as search results. */
.highlight
{
   background-color: #000000;
   font-weight: bold;
   color: #ffffff;
}

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg
{
   color: #000000;
   background-color: #000000;
}
.windowbg2
{
   color: #000000;
   background-color: #000000;
}

/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg a:link, .titlebg a:visited
{
   color: #ffffff;
   font-style: normal;
   background-color: cc0000;
}
.titlebg a:hover
{
   color: #cc0000;
}

/* This is used for categories, page indexes, and several other areas in the forum. */
.catbg
{
   background-image: url(images/catbg.jpg);
}

/* This is used for a category that has new posts in it... to make it light up. */
.catbg2
{
   background-image: url(images/catbg2.jpg);
}

.catbg, .catbg2
{
   font-weight: bold;
   background-color: #cc0000;
   color: #ffffff;
}

/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor
{
   background-color: #cc0000;
}

/* This is used on tables that should just have a border around them. */
.tborder
{
   border: 2px solid #ffffff;
   background-color: #cc0000;
   padding: 2px;
}

/* Default font sizes: small (10pt), normal (12pt), and large (16pt). */
.smalltext
{
   font-size: x-small;
   font-family: tahoma, sans-serif;
}
.normaltext
{
   font-size: small;
}
.largetext
{
   font-size: large;
}

/* This is the white header area where the title, menu bars, and header boxes are. */
#headerarea
{
   background-color: #000000;
   border-bottom: 1px solid gray;
}
/* This is the main area of the forum, the part that's gray. */
#bodyarea
{
   background-color: #000000;
}
/* And this is the bottom, where the copyright is, etc. */
#footerarea
{
   color: black;
   background-color: #000000;
   border-top: 2px #ffffff;
}

/* This is for the special header boxes on the top (user info, key stats, news box.) */
.headertitles
{
   background-color: #cc0000;
   border: 2px solid #ffffff;
   height: 12px;
}
.headerbodies
{
   border: 1px solid #ffffff;
   background-color: #000000;
   background-repeat: repeat-x;
   background-position: bottom;
}

/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage
{
   width: 100%;
   overflow: auto;
   line-height: 1.3em;
}

/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
   width: 100%;
   overflow: auto;
   padding-bottom: 3px;
   line-height: 1.3em;
}

1MileCrash

that's an image. catbg.jpg. replace it with something else.
The only thing php can't do is tell you how much milk is left in the fridge.



deathwantsme

#2
yup, that did it, thank you. Why is it that the image was differnt lengths depending on where it showed up? did it just get streched?


Another question, i cant read the things in the admin panel under administration center. The live from SMF and Support Information is the same text color as the forum background, what do i need to change?


never mind, i had this problem before and i remember how to fix it.

Advertisement: