Help - Search - Members - Calendar
Full Version: Moving the child anchor tag above the parent div tag
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
kathipavan
Hi All,

i got a div tag with an anchor tag within it like this.

<div style="height:10px;width:300px;background-color:Red">
<a>hello</a>
</div>

the text hello is displaying within div tag, is there any way to make the text move above or on the div tag boarder(using paading,margin etc) without moving the anchor tag out of div tag.

Thank you in advance.

Regards,
pavan.
Christian J
You might use e.g.

CODE
a {position: relative; top: -2em;}
kathipavan
Thank you very much for your reply.

Regards,
pavan.

QUOTE(kathipavan @ Aug 14 2009, 08:19 PM) *

Hi All,

i got a div tag with an anchor tag within it like this.

<div style="height:10px;width:300px;background-color:Red">
<a>hello</a>
</div>

the text hello is displaying within div tag, is there any way to make the text move above or on the div tag boarder(using paading,margin etc) without moving the anchor tag out of div tag.

Thank you in advance.

Regards,
pavan.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.