6thirty: (kai looking at you)
Syx ([personal profile] 6thirty) wrote in [community profile] style_system2016-09-02 03:05 pm
Entry tags:

How to get rid of the underline of navigation links, as well as the size of the bar and font

Hi again. It's me, Syx, and I'm trying to get rid of the underline under the navigation links. I also want to know where I can fix the size and font-size of the navigation bar too.

Here is the code:


Could you please help me figure it out? There may be an excessive amount of code when dealing with navigation bar and navi-links section.
vorador: (Default)

[personal profile] vorador 2016-09-04 08:04 pm (UTC)(link)
the underline problem: text-decoration:none!important; should solve it.

to change the size of the navbar, find .module and add width:XXX;. you may need to adjust the size of the entries too or they may overlap with the navbar.

you can change the font sizes in .module-content.

i hope this helps! :)
Edited 2016-09-04 20:04 (UTC)
vorador: (Default)

Re: Thank You!

[personal profile] vorador 2016-09-12 02:58 pm (UTC)(link)
you can fix the problem without !important, but it means you have to look for the exact bit of code that's causing the problem.

in your case, there is an instruction in the css somewhere that gives all the links in the body an underline. one way of fixing that is finding that particular bit of code and changing it, but if there's more than one instance of it, it's going to take some time.

another way is by adding a {text-decoration:none;} at the bottom of your css. instructions added last usually override previous instructions.

the third way is using !important. what !important does is it makes the instruction override all other instructions throughout the page. that means that if someone makes a post and adds a custom style in the html of the post, !important can override that too.

i'm not sure how well i explained it. if you're still confused about !important, here are some articles which will probably explain it way better than me:
- http://webdesign.about.com/od/css/f/blcssfaqimportn.htm
- https://css-tricks.com/when-using-important-is-the-right-choice/
- http://stackoverflow.com/questions/9245353/what-does-important-in-css-mean
vorador: (Default)

Re: Thank You!

[personal profile] vorador 2016-09-12 06:24 pm (UTC)(link)
glad i could help! :)