Uutiset:

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

Main Menu
Advertisement:

border color

Aloittaja AllanD, toukokuu 11, 2011, 07:23:00 IP

« edellinen - seuraava »

AllanD

I have looked everywhere in the index.css and I can't seem to find the border color for the main page.I'm using 2.0 rc 5 and curve theme
Check out this great sites.
KnD Hosting

All Colours Sam

Hi, what border exactly?  can you post a screen shot so we can have a better idea.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

AllanD

i can post a link for ya if that's ok
http://mympz.com/test/index.php
I want to replace the white border around the boards on the main page.
Hope that makes sense
Check out this great sites.
KnD Hosting

All Colours Sam

The white border its actually made of images, for the header  and the footer part:

http://mympz.com/test/Themes/MPZ/images/theme/main_block.png


for the content part:

http://mympz.com/test/Themes/MPZ/images/theme/frame_repeat.png



#header {
background-attachment: scroll;
background-clip: border-box;
background-color: #ece8e0;
background-image: url("http://mympz.com/test/Themes/MPZ/images/theme/main_block.png");
background-origin: padding-box;
background-position: 0px -480px;
background-repeat: no-repeat;
background-size: auto;
padding-left: 20px;
}

#content_section {
background-attachment: scroll;
background-clip: border-box;
background-color: #ece8e0;
background-image: url("http://mympz.com/test/Themes/MPZ/images/theme/frame_repeat.png");
background-origin: padding-box;
background-position: 0% 0%;
background-repeat: repeat-y;
background-size: auto;
padding-left: 20px;
}

#footer_section {
background-attachment: scroll;
background-clip: border-box;
background-color: transparent;
background-image: url("http://mympz.com/test/Themes/MPZ/images/theme/main_block.png");
background-origin: padding-box;
background-position: 0px -820px;
background-repeat: no-repeat;
background-size: auto;
padding-left: 20px;
text-align: center;
}


Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

MrGrumpy

If you mean the gaps between the actual boards it isn't a border its cellspacing - to remove it

Open BoardIndex.template.php

find

echo '
<div id="boardindex_table">
<table class="table_list">';


change to
echo '
<div id="boardindex_table">
<table class="table_list" cellspacing="0">';

the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

AllanD

ok great thanks and ok if i remove the cell spacing can i add a color in there around the boards.
Check out this great sites.
KnD Hosting

MrGrumpy

Ok the white you see isnt anything to do with the board its the image behind main_block.png. If you do like I said you will see the gap will no longer be there.

You can add a border round the boards like on my theme http://www.petchatforum.net/demo/index.php

Is that how you want a border to be, round each cell?
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

AllanD

yes something like that but only 1 pixel wide
Check out this great sites.
KnD Hosting

MrGrumpy

Its gone 1am here now and Im off to bed, I can help you with this and explain how to do the menu as well tomorrow if you haven't done it by then.
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

AllanD

ok great since i looked and have no idea about what code to put where.Thank you again for all your help
Check out this great sites.
KnD Hosting

Gary

You can actually set a background for the table.

Give:

<table class="table_list" cellspacing="1" style="background: #FFCC31;">

a shot.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

MrGrumpy

How i added the borders was to add it individually to each cell

In index.css find
/* Styles for a typical table.
------------------------------------------------------- */
table.table_list
{
width: 100%;
}
table.table_list p
{
padding: 0;
margin: 0;
}
table.table_list td, table.table_list th
{
padding: 5px;
}
table.table_list tbody.header td
{
padding: 0;
}
table.table_list tbody.content td.stats
{
font-size: 90%;
width: 15%;
text-align: center;
}
table.table_list tbody.content td.lastpost
{
line-height: 1.3em;
font-size: 85%;
width: 24%;
}
table.table_list tbody.content td.icon
{
text-align: center;
width: 6%;
}


Replace with this


/* Styles for a typical table.
------------------------------------------------------- */
table.table_list
{
width: 100%;
}
table.table_list p
{
padding: 0;
margin: 0;
}
table.table_list td, table.table_list th
{
padding: 5px;
}
table.table_list tbody.header td
{
padding: 0;
}
table.table_list tbody.content td.info
{
border: 1px solid #000000;
}
table.table_list tbody.content td.stats
{
font-size: 90%;
width: 15%;
text-align: center;
border: 1px solid #000000;
}
table.table_list tbody.content td.lastpost
{
line-height: 1.3em;
font-size: 85%;
width: 24%;
border: 1px solid #000000;
}
table.table_list tbody.content td.icon
{
text-align: center;
width: 6%;
border: 1px solid #000000;
}


I have set the borders as #000000 (black) change that to the hex color code for the color you want them to be


the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

AllanD

thank you all very much.But how do i get a border around child boards displayed on the main page.
Check out this great sites.
KnD Hosting

MrGrumpy

Oh sorry, forgot to add the childboard code

After the code i posted just add this

table.table_list tbody.content td.children
{
border: 1px solid #000000;
}



Also if you haven't noticed I replied to your menu post too
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

AllanD

Check out this great sites.
KnD Hosting

Advertisement: