Jump to content

CSS remove value which was set earlier


wendu

Recommended Posts

hey

 

here's my CSS

 

#wrapper p { margin-bottom: 1em; }

 

#wrapper p.info { margin-bottom: -1em; }

 

now the second line obviously doesn't work, but how can I remove the margin-bottom value from it without changing the first CSS rule?

Link to comment
Share on other sites

do you mean you want to remove the margin bottom for .info that is in p that is in #wrapper? if yes then you wrote it correctly. you just need to put a space in between p and .info and change the value to remove it.

 

I tried that and the CSS didn't work for that part after..

Link to comment
Share on other sites

Try removing the 'p.' from the '#wrapper p.info' part.

 

I probably should've mentioned that I already have a working CSS link to the text I want to modify, the paragrapht

 

I can do font-weight: bold and it works, but when I do margin-bottom: -1em; when about 100 lines above> margin-bottom: 1em is set to EVERY P within #wrapper

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.