English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have figured out the problem.

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 (wher eI want the margins).

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 dont have any idea what the formatting is (the formatting is blank under the CSS edit pallette except for the margins).

HELP!!!!!!!!

2007-05-25 07:05:29 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

You can change the style for one particular element while keeping other elements of the same type unaffected.

Add this to your paragraph tag:



That will set the margins for that one particular paragraph to 0, while leaving all other paragraphs unaffected.

2007-05-25 07:12:46 · answer #1 · answered by Colin K 5 · 1 1

In any html tag you can override the current CSS by using the style="" attribute. Example:


This tag has a 50 pixel margin.


This tag has no margin.


This tag does have the 50 pixel margin.



Note that if you copy/paste that exact code, it will look like it is not working. This is because the margins on the 1st and 3rd

tags are still there. You'll need to remove the margins from those as well. Try something like this:

Big huge margin


The margin on the bottom is the only one removed so other spacing will not be affected.



This tag will appear right up against the tag above it.


Now this one will appear right up against the tag above it.


This tag will have the big 50 pixel margin between it and the tag above it.

2007-05-25 07:21:16 · answer #2 · answered by wfinn 2 · 1 0

In one sense, it seems that you're asking to change the format of elements in the heading while not changing them elsewhere? If so, then make the heading a div and set p { ....styling...
and div#heading p { ...other styling...
to get what you want?

2007-05-25 07:26:19 · answer #3 · answered by fjpoblam 7 · 0 0

you have indicated your table is 800px in width. in case you attempt to in high-quality condition 8 lists into that area, the mathematics does not upload up. you have set your record width at 150px, each and each with a 1px border and a left margin of 25px. a hundred and fifty+25+2=177px x 8 lists = 1416 px. standards-compliant browsers will in basic terms know the width parameter you declare, that's 800. IE in many situations seems to be extra forgiving with miscalculation, yet motives issues someplace else to compensate. there are a number of different blunders on your code, even if it extremely is not sparkling what end result you assume. You referred to 2 hundred lists. Are you attempting to rearrange them in rows of 8 lists each and each? i will extra functional propose you with extra information approximately your purpose.

2016-10-06 01:12:40 · answer #4 · answered by ? 4 · 0 0

Just change the margin that is set for h1, h2, h3 etc. Such as
h1 {
margin:0;
}

2007-05-25 07:08:59 · answer #5 · answered by Anonymous · 0 0

fedest.com, questions and answers