Solved

Pull H2 border up

Posted on 2009-06-29
3
298 Views
Last Modified: 2012-05-07
Is there a way to pull the bottom borer on the example code to the absolute bottom of the Header text?
<html>
 

<head>

<title>Header 2</title>

<style>

<!--

.head       { border-bottom:1px solid #FF0000;

                padding:0px; 

                margin:0px; }

.top        { float: right;

                 }               

-->

</style>

</head>
 

<body>

<div class="head">

    <div class="top">[<a href="#top">top</a>]</div>

	<h2>Header 2</h2>

</div>
 

</body>

</html>

Open in new window

header2.jpg
0
Comment
Question by:rdivilbiss
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
lharrispv earned 500 total points
ID: 24740010
See if this works.

h2 {padding:0px;  margin:0px;}
0
 
LVL 29

Author Closing Comment

by:rdivilbiss
ID: 31598103
Thanks
0
 
LVL 8

Expert Comment

by:lharrispv
ID: 24740113
np
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Column Spacing 3 36
css to place image in corner of html table cell. 5 40
logo disappears on cell phones 5 33
HTML CSS 7 18
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

705 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