Discussion Locked

Dreamweaver MX

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am designing my website and i am using Dreamweaver MX. I have set up m y index page and have used paragraphs with 3 styles(1,2,amd 3).

I have gaps between the lines how can i rmove these so that there are no more spaces between the lines.

7 replies

by davidalpha9

Dont use paragraphs they always space the lines between each paragraph. If you need to start a new line use the line break tag
if you need a new line with spacing use it twice

Easier to insert these using code view.

by theblacksmith

Do not use br to break your lines. This is a very bad usage that will surely bites you back one day or another. Use Cascading Style Sheets (CSS) to define the presentation of your page. There a many good tutorials on TechRepublic and the web.

Dreamweaver provides tools to define CSS. Personaly, I prefer creating them by hand but the interface provided by DW will ease your way in.

An example: in the head of your page, you can add style definitions using:

This will reset all margins (top, right, bottom, left; the order is important) to 0;

If you wish to remove margin only on a specific group of paragraph, wrap this group in a div with an id.

1

2

and then, the style definition would become:

#intro p {margin: 0 0 0 0;}

CSS is a very powerful tool. Go through some tutorials and grab a good book, and you'll be up and running very fast.

This discussion is closed to new replies.