[personal profile] 6thirty posting in [community profile] style_system
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.

Date: 2016-09-04 08:04 pm (UTC)
vorador: (Default)
From: [personal profile] vorador
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 Date: 2016-09-04 08:04 pm (UTC)

Re: Thank You!

Date: 2016-09-12 02:58 pm (UTC)
vorador: (Default)
From: [personal profile] vorador
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

Re: Thank You!

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

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 10th, 2025 12:44 am
Powered by Dreamwidth Studios