Solved

Pull H2 border up

Posted on 2009-06-29
3
300 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

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

Title # Comments Views Activity
iOS 10 iPad Zoom and acroll 4 71
Remove greater than sign 3 67
To remove highlight from a "a href" 5 30
Objects on Same Line 2 28
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

815 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

8 Experts available now in Live!

Get 1:1 Help Now