I'm new to CSS and when I entered the command to get rid of text decorations, in my articles, nothing happened. I tried placing in different bits of the code, but still nothing. Any suggestions on what is causing it not to work?
@sachinn I wouldn't do that because there may be occasions when you might want to use text-decoration and you've just made that practically impossible.
I'm new to CSS and when I entered the command to get rid of text decorations, in my articles, nothing happened. I tried placing in different bits of the code, but still nothing. Any suggestions on what is causing it not to work?
https://raw.github.com/gist/3728435/c4f11817a3260aa7619dbeb3a58cd8ab4c3f21eb/style.css
Please put this all in Codepen or jsFiddle
Sorry, I'm working on doing that, but I've never used either of them.
Alright, I changed it to Codepen
Sweet...and the link is..?
http://codepen.io/anon/full/giLml
You seem to be referring to margins in cm which is invalid in HTML & CSS (AFAIK).
Alright, I changed all the cm to either %, or px
Something about the HTML5shiv that you are including is causing everything to fail. When I take it out, everything works normally.
And yes, don't use cm for measurements.
OK. It's difficult to see what is supposed to be happening as the Codepen is (apparently) not getting eveything.
If you are referring to losing the bullets just add this at the top of your CSS
TheDoc, I took out all the HTML5shivs and the bullets were still present.
Are you using a re-set?
Paulie_D, I used that code and the bullets were still present. I updated my code on Codepen: http://codepen.io/alexlwilson/full/hboig
Paulie_D, what do you mean by a re-set?
Sorry...my mistake.
It should have been
You might also want to google "CSS reset"
Thank you! Someone else said I should use:
article a:link, article a:active, article a:visited, article a:hover { text-decoration: none; }
Thanks again! And I already looked up CSS reset, just haven't read it thoroughly.
'text-decoration' relates (usually) to links.
The code you posted will stop links in articles being underlined in any circumstances.
It's a choice...some people prefer to have links underlined when they are hovered but some prefer a color change.
As I said, it's a choice.
hi alex,
Used this Css Selector: It will none all the text decoration property. * { text-decoration: none !important; }
@sachinn I wouldn't do that because there may be occasions when you might want to use text-decoration and you've just made that practically impossible.