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? Link to comment https://forums.phpfreaks.com/topic/172823-css-remove-value-which-was-set-earlier/ 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. Link to comment https://forums.phpfreaks.com/topic/172823-css-remove-value-which-was-set-earlier/#findComment-910885 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.. Link to comment https://forums.phpfreaks.com/topic/172823-css-remove-value-which-was-set-earlier/#findComment-910973 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. Link to comment https://forums.phpfreaks.com/topic/172823-css-remove-value-which-was-set-earlier/#findComment-911082 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 Link to comment https://forums.phpfreaks.com/topic/172823-css-remove-value-which-was-set-earlier/#findComment-911135 Share on other sites More sharing options...
wendu Posted September 4, 2009 Author Share Posted September 4, 2009 sad bump? :'( Link to comment https://forums.phpfreaks.com/topic/172823-css-remove-value-which-was-set-earlier/#findComment-912321 Share on other sites More sharing options...
haku Posted September 5, 2009 Share Posted September 5, 2009 #wrapper p.info { margin-bottom: 0; } Link to comment https://forums.phpfreaks.com/topic/172823-css-remove-value-which-was-set-earlier/#findComment-913007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.