3 replies [Last post]
Dj Flush
Offline
newbie
Last seen: 13 years 46 weeks ago
Timezone: GMT+5
Joined: 2006-07-01
Posts: 10
Points: 0

Ok here is the deal

for example

I have a DIV with class="widget" and there is another DIV with class="widget-title" which lies inside the former DIV

like:

Code:


what I want to know is......Is there any technique in CSS through which I can display the "widget-title" DIV outside the boundaries of "widget" DIV provided that the "widget-title" DIV remains nested inside the "widget" DIV.

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 12 weeks 3 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Yes. In fact there are

Yes. In fact there are several techniques for that.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 30 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Give .widget position:

Give .widget position: relative and then give .widget-title position: absolute and then a negative top value.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Dj Flush
Offline
newbie
Last seen: 13 years 46 weeks ago
Timezone: GMT+5
Joined: 2006-07-01
Posts: 10
Points: 0

Tyssen you rock sir worked

Tyssen you rock sir

worked