Posted by jukka on 09/28/13 11:42
Gernot Frisch wrote:
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>> "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
>> <HTML>
>> <HEAD>
>> <TITLE>Shadow example</TITLE>
>> <STYLE type="text/css">
>> <!--
>> #text { position: absolute; color: #000000;
>> top: 1in; left: 2in; width: 2in }
>> #shadow { position: absolute; color: #808080;
>> top: 1.01in; left: 2.01in; width: 2in; }
>> -->
>> </STYLE>
>> </HEAD>
>> <BODY>
>>
>> <DIV id="text">
>> <P>Some text here...</P>
>> </DIV>
>>
>> <DIV id="shadow">
>> <P>Some text here...</P>
>> </DIV>
>>
>> </BODY>
>> </HTML>
>
>
> Can I do thiw with position: relative somehow?
>
>
If your thinking about having the other div inside the other div and
then be positioned relative to where the parent div is positioned, that
would probably not work since the child div would be positioned relative
to the text inside the parent div. <- that probably made no sense :P
Navigation:
[Reply to this message]
|