These codes are designed to be used on any layout, just always add them to the bottom of your CSS. You can combine multiple codes together too (like add the border code then the opacity code to get borders and padding on your list).
btw there is a tutorial on changing the color on your list or rows and opacity of that color (the opacity tutorial here customizes the entire list including text) here: http://myanimelist.net/forum/?topicid=440525
Adding borders
Lets say you wanted to add borders to your list. Below I have the Shojo style layout:
Now if I add borders to it, it looks like this:
Just add these codes below in the spoiler button to add them to your list. Instructions to customize them are in the code. You can change the color and size of them!
/*LIST BORDERS
You can change the color of the border with border-color. You can increase the size of the border by increasing the px amount after any of the border-width codes. They're all set to 1px- make sure you increase all the border widths the same amount. Leave the border amounts that are set to zero alone.
*/
.status_selected, #grand_totals,
.status_not_selected, .header_title, #copyright {
border-color: white;
border-style: solid;
border-width: 1px;
}
This will let you control the entire list's spacing all around the words, known as padding. Increase the padding for more spacing. You can also change it to padding-top, padding-bottom, padding-right, or padding-left for padding on those individual sides.
/*PADDING
The space around the words in your list.
*/
.status_selected:hover, .header_title:hover, .td1:hover, #grand_totals:hover,
.status_not_selected:hover, .table_header:hover, .category_totals:hover, .td2:hover, #copyright:hover, .status_selected, .header_title, .td1, #grand_totals,
.status_not_selected, .table_header, .category_totals, .td2, #copyright{
padding: 2px;
}
Boxed-in borders
Best for more classic styled mal layouts, but you can try it on others.
How would you make the borders thinner, so that they are onley 1px at all sides?
I only changed the color of the border in the code given here, but in places (like between the lines) the borders look like they're 2px wide, but the entire top bar looks fine (here). Is there away to make them thin like in the preset MAL styles, or here?
RulenneClarissa said: the borders look like they're 2px wide
Well, there is a left border and a right one, of 1px each, the same goes for top and bottom, and on MAL presets there is only right and bottom ones set as 1px, others being zeroed. On the very first collumn [#] it is overrided by "style" attribute on td itself. This issue is result of using the same 1px for all elements at once.
I can suggest following code, it may or may not work, just try:
everblue said: How do you make the borders have round edges? :o
Good question, I should add that to this section, anyhow its border-radius:
.td1, .td2 {
border-radius: 15px;
}
I think if you add that to the bottom of your CSS code it will round all your boxes (just for an example). Think of 15px as the " amount of roundness" to your corners. You can play around with the code to see what other increases do and add it to other parts. Also you can affect multiple corners differently like:
.td1, .td2 {
border-radius: 25px 15px 45px 75px;
}
Add that to the bottom instead and you'll get a really wonky looking list, but it shows how different border radius amounts work.
everblue said: thank you ^^ but then how do you make the entire list have a round border?
Depends where your list begins or ends. If it began on the table header, and ended on the category totals, you could round the top corner of the top left table header part and the top right of the last table header part and the bottom left and right of category totals. Its a little complicated that way tho. A lot of people just replace their table header with a rounded graphic, and one on their category totals too.
Flopsie said: How do I add a box-shadow on each catagory table ?(if it's possible)
I tried #list_surround but then also the gaps have shadows..
Not sure what you mean to add box shadows too exactly but why don't you borrow the codes for the individual parts you want with this tutorial, then add box shadows to just them. I guess depending you can add box-shadow: none; or box-shadow: 0; to parts you want to remove unintended shadows from too.
Flopsie said: How do I add a box-shadow on each catagory table ?(if it's possible)
I tried #list_surround but then also the gaps have shadows..
is not possible to surround each category, 'cause each category is not a single table with as many rows as animes has the category(it should be), each row is a single table.
When I tried doing the horizontal lines, for some reason, they didn't quite go all the way to the end, leaving a space on each end. Is there a way to fix it? Thanks!
Hello, I tried to use the padding for my list but the code doesn't work for me for some reason. Does someone know what's the problem? The code's at the bottom.
/*
BACKGROUND IMAGE
This is the main background image for the whole page.
Change the image link to the background you want!
If you're not seeing a background, make sure you are copied the
entire CSS code or added any new background image codes correctly.
Also your image link may be broken, try uploading a new background then!
*/
/*
REPOSITION MAIN BACKGROUND
Change the position your background starts on your screen from with the two properties after "background-position"
below.
You replace 'center' and '43%' with two other properties, they can be any of the following: left, top, bottom,
right, or center.
So if you want your background to start from the center of the screen, use "center center" after background-
position in the code below, replacing "center 43%".
If you want it to start from the top and left, use "top left"
If you want it to start from the top and center, use "top center".
If you want it to start from the right and top, use "right top"
If you want it to start from the right and bottom, use "right bottom"
and so forth...
Additionally, you can change "left" to a % to determine how far left or right the background starts from. For
example "30% top" will start the background from the top but 30% of the pic's width from the left of the layout.
You can also change top to a % to change the amount you want to start it from the top or bottom.
*/
body{
background-position: 47% top;}
/*OTHER CODES
Important codes for the layout's setup. Don't mess with these unless you know exactly what you're doing. If you
want to customize more on the page, use the link at the top of this CSS, or ask in my club!
*/
body {
font-weight: light;
background-repeat: no-repeat;
background-color: black;
}
#list_surround {
margin:auto;
background-image:url();
}
a {
text-decoration:none;
}
a:visited {
text-decoration:none;
}
a:hover, a:visited:hover {
color:white;
text-decoration:underline;
}
#copyright:after {
content: " Based on Shishio's CSS.";
}
/*PADDING
The space around the words in your list.
*/
.status_selected:hover, .header_title:hover, .td1:hover, #grand_totals:hover,
.status_not_selected:hover, .table_header:hover, .category_totals:hover, .td2:hover, #copyright:hover, .status_selected, .header_title, .td1, #grand_totals,
.status_not_selected, .table_header, .category_totals, .td2, #copyright{
padding: 15px;
}
Hello! Is it possible to have graphic borders? I want my background to be able to shift around but I would like to make custom borders that look good with the theme I'm trying to create! Thank you for your help!
grvysxn said: Hello! Is it possible to have graphic borders? I want my background to be able to shift around but I would like to make custom borders that look good with the theme I'm trying to create! Thank you for your help!