margin-top and margin-bottom problem - not working?

S

surf chick

In one of the pages in my web, I want to have bulleted lists where the
header of each list has H5 tag modified to margin-top:0 and
margin-bottom:0 so that the bulleted list starts under the header line
with no line spacing after it. That's the theory. In practice, nothing
I do to modify the the page has the desired effect. There is the
normal extra line from after the header before the bullet list starts.
Whether I check in normal, preview or in browser (IE) from locally
saved version.

Oddly enough, I've done this before and it worked. I even copied the
<style> code from the old web into the new web but with no effect.
Here's the code I used (yes, I did change H3 to H5):

<style>
<!--
h3 { margin-bottom: 0 }
body { font-size: 10pt; margin-top: 0; margin-bottom: 0 }
p { font-size: 10pt; margin-top: 0; margin-bottom: 0 }
-->
</style>

I've tried adjusting the before and after settings in the paragraph
spacing to 0, both from the format>paragraph menu and from
format>theme>etc>paragraph.

Currently the HTML has this style (from doing the theme change):

<style>
<!--
h5 { margin-top: 0; margin-bottom: 0 }
-->
</style>

And despite making this change to all pages and saving the theme
change, the <style> code only shows up on the page that I was editing.

I've searched and only found suggestions related to greyed out
options, using SHIFT+ENTER (doesn't work - I presume because I'm
changing from header to list), or suggestions to do exactly what I've
tried.

Gnnnnnngggghhhh!!!!!????

Any suggestions?

Using Frontpage 2000, css options enabled in tools>page
options>comaptibility, theme applied using css. Web saved on
flashdisk. OS is win2KP. No URL available because I haven't published
yet.

Help?
 
S

Steve Easton

For a "style" to be applied across a web,
the style needs to be in a text css style sheet file,
named for example: example.css
Then the file is applied across the web
to apply the style.

The result being that you will see:

<link rel="stylesheet" type="text/css" href="example.css">

in the header of each page, which then applies the style
to the page from the style sheet.

hth

--
95isalive
This site is best viewed..................
...............................with a computer

In one of the pages in my web, I want to have bulleted lists where the
header of each list has H5 tag modified to margin-top:0 and
margin-bottom:0 so that the bulleted list starts under the header line
with no line spacing after it. That's the theory. In practice, nothing
I do to modify the the page has the desired effect. There is the
normal extra line from after the header before the bullet list starts.
Whether I check in normal, preview or in browser (IE) from locally
saved version.

Oddly enough, I've done this before and it worked. I even copied the
<style> code from the old web into the new web but with no effect.
Here's the code I used (yes, I did change H3 to H5):

<style>
<!--
h3 { margin-bottom: 0 }
body { font-size: 10pt; margin-top: 0; margin-bottom: 0 }
p { font-size: 10pt; margin-top: 0; margin-bottom: 0 }
-->
</style>

I've tried adjusting the before and after settings in the paragraph
spacing to 0, both from the format>paragraph menu and from
format>theme>etc>paragraph.

Currently the HTML has this style (from doing the theme change):

<style>
<!--
h5 { margin-top: 0; margin-bottom: 0 }
-->
</style>

And despite making this change to all pages and saving the theme
change, the <style> code only shows up on the page that I was editing.

I've searched and only found suggestions related to greyed out
options, using SHIFT+ENTER (doesn't work - I presume because I'm
changing from header to list), or suggestions to do exactly what I've
tried.

Gnnnnnngggghhhh!!!!!????

Any suggestions?

Using Frontpage 2000, css options enabled in tools>page
options>comaptibility, theme applied using css. Web saved on
flashdisk. OS is win2KP. No URL available because I haven't published
yet.

Help?
 
S

surf chick

Um, ok, thanks. I think I get it (I'm not experienced with CSS at all).

But what about the line spacing? Anyone help me out with that?

Thanks.
 
T

Thomas A. Rowe

What were the original issues?


--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top