#1 2007-10-17 04:23:41
- desperateboy
- New member
- Registered: 2007-10-17
- Posts: 1
- I've been thanked 0 times.
-
problem in css
hi
The lines I am using are all using heading tabs from a CSS. Each heading has margins set- those margins are causing the extra spacing that I don't want for this particular paragraph.
I don't know hot to keep all of the formating from the Heading settings while getting rid of the margin settings. I can't change the heading settings because those headings are used elsewhere .
So how do I remove the margins from one paragraph that are set in CSS?
I would just simply put the text in bold, and change the font size to get the similar look and just don't use the CSS for that paragraph but I don't have any idea what the formatting is .I just drop a message at webdesigningcompany.net forum for solution. If u understand my problem give solution.
HELP!!!!!!!!
[edited by mod - link removed - please keep urls on topic]
Last edited by Northie (2007-10-17 06:53:00)
Offline
#2 2007-10-17 06:56:41
- Northie
- Moderator

- From: Yorkshire, UK
- Registered: 2006-08-19
- Posts: 2607
- I've been thanked 63 times.
-

Re: problem in css
try adding an extra class to the offending section, then use the css to select the element by the class and remove the margin
Code: html
<div id='header' class='margin-fix top'>
...........
</div>
4 different styles can be applied to this
Code: css
div {
//applies to all divs
}
#header {
//applies to anything with the id of 'header'. no two elements can have the same id on pne page
}
.margin-fix {
//applies to anything with class 'margin-fix'
margin:0;
padding:0;
}
.top {
//applies to anything with class 'top'
}
notice that multiple classes can be used by specifiying them in a space separated list
Now taking free-lance inquiries; Please contact me for more details
Internet Marketing Books
Promote Yourself on Site Reference!
Offline
| Never |
- Sponsored Results
|
|