Solved

Dreamweaver Styles

Posted on 2014-02-12
7
396 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now