Solved

Dreamweaver Styles

Posted on 2014-02-12
7
392 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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 42

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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 …

747 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

10 Experts available now in Live!

Get 1:1 Help Now