Reply to Getting properties from grand-parent

Your name:

Reply:


Posted by Martin Magnusson on 11/25/96 11:18

Is there a way to inherit something from a grand-parent of a CSS
element, skipping the parent?

What I'm aiming at is that I have my main text flow in a div with
specified width and margins, and I would like some elements (headings)
to extend outside that main div. On the left side, it is easy, since I
have a specified margin-left, and I can just use a negative margin for
the heading. On the right side, it is trickier. If I use a hard-coded
negative margin-right, the headings won't adjust to different window
widhts. Setting width:100% makes the rightmost end stay within the
containing div. Is it possible to make the heading 100% wide with
respect to the window/body instead of its container?

This is no big deal, but if it's possible, I'd like to know how to do it.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация