News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

CSS Help - White Border won't go...

Started by Gambi, October 27, 2005, 08:46:25 PM

Previous topic - Next topic

Gambi

I've started a little Halloween theme based off the Chattab theme I'm already using, yet there seems to be a problem. I can't get rid of these white borders, can anyone help me? This is what I mean from below.



And if you think it's appropiate, here's the CSS.

/*the td stuff from chatbubbles*/
td.chattopleft { background-image: url("images/layout/top_left.gif"); background-repeat: no-repeat; }
td.chattop { background-image: url("images/layout/top.gif"); background-repeat: repeat-x; }
td.chattopright { background-image: url("images/layout/top_right.gif"); background-repeat: no-repeat; }
td.chatleft { background-image: url("images/layout/left.gif"); background-repeat: repeat-y; }
td.chatright { background-image: url("images/layout/right.gif"); background-repeat: repeat-y; }
td.chatbottomleft { background-image: url("images/layout/bot_left.gif"); background-repeat: no-repeat; }
td.chatspeakleft { background-image: url("images/layout/bot_left_speak.gif"); background-repeat: no-repeat; }
td.chatbottom { background-image: url("images/layout/bottom.gif"); background-repeat: repeat-x; }
td.chatbottomright { background-image: url("images/layout/bot_right.gif"); background-repeat: no-repeat; }
td.chatspeakright { background-image: url("images/layout/bot_right_speak.gif"); background-repeat: no-repeat; }
td.chatinside { }


/* CSS for the box starts here
================================================*/
/* Default styling. Used when JavaScript is unsupported */
.cbb {
padding:0 10px;
margin:1em 0;
background:#fff;
border:1px solid #666;
}
.cbb h1 {
margin:0 -10px;
padding:0.3em 10px;
background:#efece6;
font:bold 1.2em/1 Arial, Helvetica, sans-serif;
}
/* Insert the custom corners and borders for browsers with sufficient JavaScript support */

/* Two of the boxes are floated just for this demo. Adjust to your needs. */
.cb {
margin:0.5em 0;
}
.two {
width:45%;
float:left;
}
.three {
width:45%;
float:right;
}
/* Rules for the top corners and border */
.bt {
background:url(box.png) no-repeat 100% 0;
margin:0 0 0 10px;
height:10px;
}
.bt div {
height:10px;
width:10px;
position:relative;
left:-10px;
background:url(box.png) no-repeat 0 0;
}

/* Rules for the bottom corners and border */
.bb {
background:url(box.png) no-repeat 100% 100%;
margin:0 0 0 10px;
height:10px;
}
.bb div {
height:10px;
width:10px;
position:relative;
left:-10px;
background:url(box.png) no-repeat 0 100%;
}

/* Insert the left border */
.i1 {
padding:0 0 0 10px;
background:url(borders.png) repeat-y 0 0;
}
/* Insert the right border */
.i2 {
padding:0 10px 0 0;
background:url(borders2.png) repeat-y 100% 0;
}
/* Wrapper for the content. Use it to set the background colour and insert some padding between the borders and the content. */
.i3 {
background:#F7F7F7;
border:1px solid #F7F7F7;
border-width:1px 0;
padding:0 0px;
}
/* CSS for the box ends here */
#bot{
height:20px;
background-image:url("images/layout/barea/botbg.png")
}

#navbar{
text-align: center;
background-image:url("images/layout/navbar/bg.png");
height: 50px;
  vertical-align: baseline;
  }

#top {
height:127px;
background-image: url("images/layout/topdiv/toplogo.png");
background-repeat: no-repeat;
background-color: #000000;
}
/* Normal, standard links. */
a:link
{
color: #ffffff;
text-decoration: underline;
}
a:visited, a:hover
{
color: #FF9900;
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: #FF9900;
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: 1px;
border: 0;
color: #666666;
background-color: #666666;
}

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

/* A code block - maybe even PHP ;). */
.code
{
color: #000000;
background-color: #cccccc;
font-family: "courier new", "times new roman", monospace;
font-size: x-small;
line-height: 1.3em;
/* Put a nice border around it. */
border: 1px solid #000000;
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: #000000;
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: red;
}

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

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

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg
{
color: #ffffff;
background-color: #000000;
}
.windowbg2
{
color: #ffffff;
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: #000000;
}
.titlebg a:hover
{
color: #000000;
}

/* This is used for categories, page indexes, and several other areas in the forum. */
.catbg
{
background-color: #000000;
}

/* This is used for a category that has new posts in it... to make it light up. */
.catbg2
{
background-color: #000000;

}

.catbg, .catbg2
{
font-weight: bold;
background-color: #000000;
color: #ffffff;
background-image:url("images/cellpic.gif");
}

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

}

/* This is used on tables that should just have a border around them. */
.tborder
{

background-color: #000000;

}

#cbb{background-color: #000000;}

/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.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;
}
/* This is the main area of the forum, the part that's gray. */
#bodyarea
{
}
/* And this is the bottom, where the copyright is, etc. */
#footerarea
{
color: black;
background-color: 000000;
}

/* This is for the special header boxes on the top (user info, key stats, news box.) */
.headertitles
{
height: 12px;
}
.headerbodies
{
}

/* 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;
}


Help will be greatly appriciated, also if this could be done by the 30th of October that'd be grand.  :P

1MileCrash

try adding background-color: #000000; to the bordercolor class.
The only thing php can't do is tell you how much milk is left in the fridge.



Gambi

Thanks anyway but I managed to find the problem, now it looks pretty sweet. :)

Gambi

Okay, now I've got another problem. Everything looks great on the index, board index and everywhere else, apart from the threads.



I've looked through my CSS and can't find anything which can fix this. Once again here's my *updated* CSS code.

/*the td stuff from chatbubbles*/
td.chattopleft { background-image: url("images/layout/top_left.gif"); background-repeat: no-repeat; }
td.chattop { background-image: url("images/layout/top.gif"); background-repeat: repeat-x; }
td.chattopright { background-image: url("images/layout/top_right.gif"); background-repeat: no-repeat; }
td.chatleft { background-image: url("images/layout/left.gif"); background-repeat: repeat-y; }
td.chatright { background-image: url("images/layout/right.gif"); background-repeat: repeat-y; }
td.chatbottomleft { background-image: url("images/layout/bot_left.gif"); background-repeat: no-repeat; }
td.chatspeakleft { background-image: url("images/layout/bot_left_speak.gif"); background-repeat: no-repeat; }
td.chatbottom { background-image: url("images/layout/bottom.gif"); background-repeat: repeat-x; }
td.chatbottomright { background-image: url("images/layout/bot_right.gif"); background-repeat: no-repeat; }
td.chatspeakright { background-image: url("images/layout/bot_right_speak.gif"); background-repeat: no-repeat; }
td.chatinside { }


/* CSS for the box starts here
================================================*/
/* Default styling. Used when JavaScript is unsupported */
.cbb {
padding:0 10px;
margin:1em 0;
background:#000000;
border:1px solid #666;
}
.cbb h1 {
margin:0 -10px;
padding:0.3em 10px;
background:#000000;
font:bold 1.2em/1 Arial, Helvetica, sans-serif;
}
/* Insert the custom corners and borders for browsers with sufficient JavaScript support */

/* Two of the boxes are floated just for this demo. Adjust to your needs. */
.cb {
margin:0.5em 0;
}
.two {
width:45%;
float:left;
}
.three {
width:45%;
float:right;
}
/* Rules for the top corners and border */
.bt {
background:url(box.png) no-repeat 100% 0;
margin:0 0 0 10px;
height:10px;
}
.bt div {
height:10px;
width:10px;
position:relative;
left:-10px;
background:url(box.png) no-repeat 0 0;
}

/* Rules for the bottom corners and border */
.bb {
background:url(box.png) no-repeat 100% 100%;
margin:0 0 0 10px;
height:10px;
}
.bb div {
height:10px;
width:10px;
position:relative;
left:-10px;
background:url(box.png) no-repeat 0 100%;
}

/* Insert the left border */
.i1 {
padding:0 0 0 10px;
background:url(borders.png) repeat-y 0 0;
}
/* Insert the right border */
.i2 {
padding:0 10px 0 0;
background:url(borders2.png) repeat-y 100% 0;
}
/* Wrapper for the content. Use it to set the background colour and insert some padding between the borders and the content. */
.i3 {
background:#000000;
border:1px solid #000000;
border-width:1px 0;
padding:0 0px;
}
/* CSS for the box ends here */
#bot{
height:20px;
background-image:url("images/layout/barea/botbg.png")
}

#navbar{
text-align: center;
background-image:url("images/layout/navbar/bg.png");
height: 50px;
  vertical-align: baseline;
  }

#top {
height:160px;
background-image: url("images/layout/topdiv/toplogo.png");
background-repeat: no-repeat;
background-color: #000000;
}
/* Normal, standard links. */
a:link
{
color: #ffffff;
text-decoration: underline;
}
a:visited, a:hover
{
color: #FF9900;
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: #FF9900;
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: 1px;
border: 0;
color: #666666;
background-color: #666666;
}

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

/* A code block - maybe even PHP ;). */
.code
{
color: #000000;
background-color: #cccccc;
font-family: "courier new", "times new roman", monospace;
font-size: x-small;
line-height: 1.3em;
/* Put a nice border around it. */
border: 1px solid #000000;
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: #000000;
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: red;
}

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

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

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg
{
color: #ffffff;
background-color: #000000;
}
.windowbg2
{
color: #ffffff;
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: #000000;
}
.titlebg a:hover
{
color: #000000;
}

/* This is used for categories, page indexes, and several other areas in the forum. */
.catbg
{
background-color: #000000;
}

/* This is used for a category that has new posts in it... to make it light up. */
.catbg2
{
background-color: #000000;

}

.catbg, .catbg2
{
font-weight: bold;
background-color: #000000;
color: #ffffff;
background-image:url("images/cellpic.gif");
}

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

}

/* This is used on tables that should just have a border around them. */
.tborder
{

background-color: #000000;

}

#cbb{background-color: #000000;}

/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.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;
}
/* This is the main area of the forum, the part that's gray. */
#bodyarea
{
}
/* And this is the bottom, where the copyright is, etc. */
#footerarea
{
color: black;
background-color: 000000;
}

/* This is for the special header boxes on the top (user info, key stats, news box.) */
.headertitles
{
height: 12px;
}
.headerbodies
{
}

/* 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;
}


Again, help will be greatly appriciated, also... remember, remember the 30th of October.  8)

dtm.exe

If has to be defined somewhere.  Try searching all affected files for "FFFFFF".

Gambi

I did that, well searched everything in styles.css that had FFFFFF. Anywhere else I could try and look? There's another CSS file called wireless.css, I looked at that and fiddles around but didn't see any changes. :(

dtm.exe

Quote from: Broomie on October 27, 2005, 10:40:47 PM
I did that, well searched everything in styles.css that had FFFFFF. Anywhere else I could try and look? There's another CSS file called wireless.css, I looked at that and fiddles around but didn't see any changes. :(

No.  Where are you seeing these borders?

Gambi

Well it's not really the borders, but everything on the thread view page. It's all white and I can't understand what's wrong in the CSS. I haven't made any changes to the CSS since last time so if someone could have a butchers (look) at it since I'm still a newbie at all this.

http://img421.imageshack.us/img421/6353/problem24dn.png

Thanks in advance.

1MileCrash

look in display.template.php for "white" or "#FFFFFF"
The only thing php can't do is tell you how much milk is left in the fridge.



Advertisement: