Forum Settings
Forums
New
Mar 11, 2012 10:52 PM
#1

Offline
Feb 2010
11294
This topic is part of our Tools, Tips, and Feedback section:
http://myanimelist.net/forum/?topicid=513201


Hey, if you're a beginner and planning to make over your list dramatically in the future, here's some quick info we can give you beginner's to avoid problems later on!

1. Every time you save your CSS with the blue button, refresh the page (or go back one page). For some reason on this site, after saving the CSS changes you've made in your edit box, the page (page with the CSS edit box) will move forward one page, and to a page with a CSS edit box that has the old CSS you just saved over before any changes were made to it. So if you edit that CSS further it won't have your changes you just made earlier!

So its very important that everytime you make new changes to your CSS and hit the blue button, you simply go back one page (or refresh) so you instead go to the newly changed CSS you just made. You want to edit that CSS since it displays the changes you saved earlier. Also if you close the page and go back your box later it will be the normal updated CSS too.

2. When you are going to install a new premade layout make sure you completely delete the old CSS you are replacing from your CSS edit box.

3. Avoid dark text on a dark background or light text on a light background. Its hard to read for users who want to look at your list!

4. People can only see fonts that they have installed. So if you installed an obscure font most people don't have, keep in mind they're not gonna see it! There is a trick to bypass this tho in my CSS tutorials.

5. When you copy codes be extra super careful you always copy the entire CSS and not extra parts of a post outside the CSS. Most of the time in this club, the codes are separated by being within a spoiler button or placed in bold! If you don't copy an entire code right, it can make it not work right.

6. Later on, if you make or make over an advanced layout that took a lot of time, check how your layout looks on other screen resolutions before you finish so that you don't find out later it looks different in other resolutions (if thats important to you). Use this site to check:
http://quirktools.com/screenfly/

Be sure to post any tips you can give new designers too!

I also have a tools and tips thread too for general info: http://myanimelist.net/forum/?topicid=395971
Shishio-kunMar 19, 2016 9:24 PM
Reply Disabled for Non-Club Members
Mar 12, 2012 3:25 AM
#2

Offline
Jun 2011
46
Dont use browser specific Code, Make sure your code works in the main internet browsers.
Mar 12, 2012 4:24 AM
#3

Offline
Nov 2011
304
Tip: Use zoom in browser for checking how it would look in different resolutions (since you're mostly concerned with how it would be positioned, it is simple and good check.

Tip: Watch the bandwith! The less is the better with no exceptions. You should probably consider reducing if overall (your CSS + all your pics) exceed 2Mb's)

Tip: Try to make your code clear and don't overuse selectors. This:
html > body > table#mal_control_strip > tbody > tr > td#mal_cs_powered > div#search > input#searchBox

and this:
#searchBox

target the same — the search box on top bar. But the 2nd looks better and makes your code cleaner
Comments also help a lot with navigation and when modifying your old code.
/* This text will not alter the way content displayed in any way */
VeriTiMar 12, 2012 4:38 AM
Mar 23, 2012 11:30 AM
#4

Offline
Nov 2011
304
Q: How do I make some piece of text disappear.
A: This is not an easy question because there is a variety of ways that will not work. Bulletproof method:
selector{
color: transparent; /* This makes text invisible */
letter-spacing: -1ex; /* Optional - makes text overlap itself so it occupies almost no space (little more than one letter */
content: none; /* Optional - for Opera removes whatever was inside originally like there was never anything */
}


Advice: fight your laziness
1) Do NOT use universal selector (*) for configuring font looks unless you have a reason to do it and there is no other way to be done.
2) There is only ONE correct way of using draft options like transition, and here it is on example:
-o-transition: all .3s ease;
-moz-transition: all .3s ease;
-webkit-transition: all .3s ease;
transition: all .3s ease;


Three first lines make sure that it will work for most popular browsers: FF, Opera, Chrome & Safari. The last one puts a standardized way, so if current specification will be accepted, next versions of other browsers will 'catch' it without any need to modify the code.

Also, try not to use some non-standard stuff like linear-gradient because almost always it can be replaced with 1px wide gradient pic made in image editor

And one important thing:
Correct your code manually after you're done. Firebug or other dev tools are not omnipotent and the code you're going to get by autocomplete is often a huge mess. Reviewing a code also increases your CSS skill.
Mar 23, 2012 11:49 AM
#5

Offline
Feb 2010
11294
VeriTi said:
Q: How do I make some piece of text disappear.
A: This is not an easy question because there is a variety of ways that will not work. Bulletproof method:
selector{
color: transparent; /* This makes text invisible */
letter-spacing: -1ex; /* Optional - makes text overlap itself so it occupies almost no space (little more than one letter */
content: none; /* Optional - for Opera removes whatever was inside originally like there was never anything */
}


Advice: fight your laziness




1) Do NOT use universal selector (*) for configuring font looks unless you have a reason to do it and there is no other way to be done.
2) There is only ONE correct way of using draft options like transition, and here it is on example:
-o-transition: all .3s ease;
-moz-transition: all .3s ease;
-webkit-transition: all .3s ease;
transition: all .3s ease;


Three first lines make sure that it will work for most popular browsers: FF, Opera, Chrome & Safari. The last one puts a standardized way, so if current specification will be accepted, next versions of other browsers will 'catch' it without any need to modify the code.

Also, try not to use some non-standard stuff like linear-gradient because almost always it can be replaced with 1px wide gradient pic made in image editor

And one important thing:
Correct your code manually after you're done. Firebug or other dev tools are not omnipotent and the code you're going to get by autocomplete is often a huge mess. Reviewing a code also increases your CSS skill.



lol of course, the removing text question has to be the second most asked question! Good find! How could I have ever missed this?! ...WHAT A TWIST!

Does anyone know if 'font-color: transparent' work in IE7 to IE8? I am pretty sure it didn't in IE6.
Mar 23, 2012 12:04 PM
#6

Offline
Nov 2011
304
Should in IE8, not sure about IE7... but lol probably 50% of stuff we discuss here won't work for it
Apr 15, 2012 7:42 PM
#7

Offline
Feb 2010
11294
Thanks for the help with this thread you two, I posted the suggested FAQs over to the Ask thread along with a lot of new ones.
Nov 12, 2012 8:32 AM
#8

Offline
Nov 2009
910
Nice .... Thanks for that Screenfly web page ... it will be useful :)
Dec 16, 2015 8:24 PM
#9

Offline
Feb 2010
11294
Fixed, and wow these are still relevant!
Reply Disabled for Non-Club Members

More topics from this board

» ❓ Ask for help here + See Frequently Asked Questions ( 1 2 3 4 5 ... Last Page )

Shishio-kun - Apr 15, 2010

7812 by mtsRhea »»
Apr 21, 5:25 AM

» [CSS- MODERN] ⭐ Minimal Dashboard layout by 5cm ~ Compact and convenient! ( 1 2 3 )

Shishio-kun - Sep 4, 2020

121 by Pokitaru »»
Apr 21, 3:25 AM

» [CSS-MODERN] Change list text/font colors on any list layout

Shishio-kun - May 4, 2021

3 by hideso »»
Apr 20, 4:33 PM

» [CSS] [VIDEO GUIDE] ⭐️ How to change fonts on a list layout

Shishio-kun - Jul 15, 2019

17 by hideso »»
Apr 20, 4:03 PM

» [CSS][Modern] ☀️ Endless Summer Layout by Cateinya ( 1 2 3 4 5 ... Last Page )

Cateinya - Aug 18, 2016

309 by hideso »»
Apr 20, 3:56 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login