Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How do I reduce paragraph spacing?

Featured Replies

Hi guys,

 

Please excuse my ignorance! I've had a site built for me from my visuals in Dreamweaver, I'm now having a play with it to see how it is built and how it works so I can edit it myself in the future.

 

I would like to know how to reduce paragraph spacing in Dreamweaver as I can't figure it out! Have a look at the home page and you'll see that the space between each paragraph looks too big.....

 

www.orangutancreative.co.uk

 

Thanks in advance!

Amy :D

You have lots of empty paragraphs - go to code view and remove anything that says

 

<p> </p>

 

Unfortunately this is a sympton of using a WYSIWYG like Dreamweaver :)

p {margin:0; padding:0;}

 

 

obviously you can set it to whatever you want...a good way to start off your css is to use this bit of code

 

 

* {margin:0; padding:0;}

 

This will take out all default margins so that the only spacing that you have is that which you specify

  • Author
p {margin:0; padding:0;}

obviously you can set it to whatever you want...a good way to start off your css is to use this bit of code

* {margin:0; padding:0;}

 

This will take out all default margins so that the only spacing that you have is that which you specify

 

Sorry, I am a beginner at this. Is there a way to do this through the CSS options in Dreamweaver rather than using code directly? How do I specify the spacing?

 

Thanks

First things first get rid of all the

<p> </p>

 

in the HTML.

 

If you don't do this then changing spacing won't have the desired effect, and if you do do it, you may find the spacing is what you want.

 

To do what Dizi said the easiest way really is to view at the css code and copy and paste this:

* {
margin: 0px;
padding: 0px;
}

 

To do it in Dreamweaver options thingy you have to add new rule, choose the 3rd advanced option, type * then in "border" check same for all for padding and margin and set the top to zero...

 

That resets ALL of your margins and paddings, to do it just for p use the tag option and type p instead of the advanced option and * ... or copy and paste Dizi's other code sample.

 

I think that if you get rid of all the extra p's it will look how you want anyway so no need to fiddle with the css.

 

- Eris

  • Author

Thanks guys,

 

I have removed the extra spaces but now the paragraphs are too close together, I would like to put a little space betwwen them, how do I specify this? Can I do it by modifying the following in the CSS code?.....

 

body {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 70%;

color: #666666;

line-height: 150%;

background-color: #4B4C4E;

}

 

Cheers

Amy

This is the long hand version of how to do this, but I think it is better for you to see the long hand rather than the shorthand version (they both do the same thing)

 

add this to your code

 

p {

padding-top:0px;

padding-left:0px;

padding-right: 0px;

padding-bottom: 6px;

}

 

 

 

you can change each of these to your needs, just add it to your css file. Normally just to add spacing to the bottom will add a bit of space to the paragraph, but you can add space on any of the side, just change the 0's or the 6 to a different number :)

 

 

ohh and if you just use the padding bottom you don't need to have the other ones so it could just be:

 

p {

padding-bottom: 3px;

}

  • 4 weeks later...
but I think it is better for you to see the long hand rather than the shorthand version

 

p {
padding-top:0px;
padding-left:0px;
padding-right: 0px;
padding-bottom: 6px;
}

 

Why? I think it will be a nice thing to learn to read padding: 0 0 0 0; clockwise from the top. It is not really that difficult and you'll save three lines of code just like that. It is very easy to get bad coding habits. ;)

 

This is also transferable to some of the other CSS on your site.

 

	background-repeat: repeat-y;
background-image: url(images/bodyback.gif);
background-image: url(../images/bodyback.gif);
background-attachment: scroll;
background-position: left top;

 

This Could really be written as background: url('images/bodyback.gif') top left;

 

- When you are using text-decoration: none; on every link-element, you may just put it into * { } and add a text-decoration on those object you want them on. ;)

 

- Don't use background-attachment: fixed; as it is a default value. :)

 

I'm not saying this to be an ass or to prove my knowlage or anything. I just think your site has great potential and that everyone can do things even better. Good luck with your site. With these improvments, you'll be able to reduce your Css a lot. :)

 

Btw. Great design! Love it.

I took a second look at your site today and I almost missed out the portifolio navigation! I diden't see it the last time neighter, so It definitly needs some work. Try bigger numbers, a color with more contrast and maybe a heading that can draw attention. A background color with contrast could also be a good choice right on the navigation.

 

Good luck.

Really nice site, and some nice examples of work in your portfolio! The next trick I guess is to transfer your design skills to the web, so you can offer another string to your bow! If you hang around here long enough you will learn a lot :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.