Solved

Dreamweaver Styles

Posted on 2014-02-12
7
403 Views
Last Modified: 2014-02-12
I use styles in Dreamweaver
When I use H1 for headings the height of the line space seems about double what it is normally.
I would like to reduce this but cannot find the method.

Any ideas please?
Many thanks

John
0
Comment
Question by:johnhardy
7 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39852739
edit your css

On the css pane, select New CSS Rule.

Choose Tag

Select h1

Select New style sheet if you don't have have or "this style sheet" if you are using one currently.

Click on 'Type' on the left under category

Select the font size and line-height you want to use.  If you have h1 at 28px, try line height of 28px.  Play with the 2 settings until you get what you like.
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 39852740
you can also add these css on top of your  page,

h1 {
  font-weight: bold;
  color: #fff;
  font-size: 32px;
}

h2 {
  font-weight: bold;
  color: #fff;
  font-size: 24px;
}

Open in new window

0
 

Author Comment

by:johnhardy
ID: 39852915
Thanks
I think I have the styles code correct for h1
h1 {
      font-family: Verdana, Geneva, sans-serif;
      font-size: 24px;
      font-weight: bold;
      color: #FFFFFF;
}
but if you have a look at http://lepagemarketing.co.uk you will see the h1 marked words CABLE GLANDS & TERMINAL BLOCKS has a large space over and under the text. it is the space I am trying to remove.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 39852926
I think you have put in <TR>, <TD> .. instead just try in single row with line break.
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 39852931
You could use DIV section on the same styles used.
0
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 500 total points
ID: 39852984
The gap is caused by a default margin. Just add a margin rule to your style:

h1 {
      font-family: Verdana, Geneva, sans-serif;
      font-size: 24px;
      font-weight: bold;
      color: #FFFFFF;
      margin:0px;
}

Open in new window

0
 

Author Closing Comment

by:johnhardy
ID: 39853088
Thank you Chris for a correct answer.

My thanks also to the other contributions.
Regards

John
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question