wendu Posted September 2, 2009 Share Posted September 2, 2009 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? Quote Link to comment Share on other sites More sharing options...
Pickle Posted September 2, 2009 Share Posted September 2, 2009 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. Quote Link to comment Share on other sites More sharing options...
wendu Posted September 2, 2009 Author Share Posted September 2, 2009 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.. Quote Link to comment Share on other sites More sharing options...
lostprophetpunk Posted September 2, 2009 Share Posted September 2, 2009 Try removing the 'p.' from the '#wrapper p.info' part. Quote Link to comment Share on other sites More sharing options...
wendu Posted September 2, 2009 Author Share Posted September 2, 2009 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 Quote Link to comment Share on other sites More sharing options...
wendu Posted September 4, 2009 Author Share Posted September 4, 2009 sad bump? :'( Quote Link to comment Share on other sites More sharing options...
haku Posted September 5, 2009 Share Posted September 5, 2009 #wrapper p.info { margin-bottom: 0; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.