HighDots Forums  

Style Sheet Help

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Style Sheet Help in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mick Walker
 
Posts: n/a

Default Style Sheet Help - 09-28-2007 , 06:35 AM






I am totally new, never done any CSS (ok a tiny bit) before, so please
bear with me....

I have been looking at the following:
http://www.brainjar.com/css/position...olutedemo.html

And am now wondering, how could I make DIV A1 appear 10px from the top
left hand corner of DIV A, whatever DIV A's position is set to?

I've been playing about a little but so far had no luck.

Reply With Quote
  #2  
Old   
Gus Richter
 
Posts: n/a

Default Re: Style Sheet Help - 09-28-2007 , 03:27 PM






Safalra wrote:
Quote:
I assume that by 'position' you mean the CSS property rather than the
on-screen position? Just set DIV A1's top and left to 10px rather than
150px and make sure that DIV A establishes a new containing block (for
example, by using position:relative).
By using position:relative, fixed or absolute as in the OP's example.
Per 4. in the below given link.

Quote:
Information on containing blocks can
be found here:

http://www.w3.org/TR/CSS21/visudet.h...-block-details
--
Gus


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.