Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 11-14-2007, 05:09 AM Relative Positioning
Extreme Talker

Posts: 196
Trades: 0
In the following code i need *Signup* to align just to the right of *Login*. Due to *SearchContainer* location, it must be absolute positioned. Thanks for the help.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">

<style type="text/css" title="">
#SearchContainer    { position:absolute; z-index:1; width:210px; height:125px; border:1px solid red; }
    #SearchField    { position:relative; z-index:3; width:200px; top: 5px; border:1px solid orange; }
    #LoginMessage    { position:relative; z-index:3; width:200px; top: 10px; border:1px solid yellow; }
    #Login            { position:relative; z-index:3; width:150px; top: 20px; border:1px solid green; }
    #Signup            { position:relative; z-index:4; width: 25px; top: 20px; left: 10px; border:1px solid blue; }

</style>

</head>
<body>

    <div id="SearchContainer">
        <div id="SearchField">Epsum factorial non</div>
        <div id="LoginMessage">Lorem ipsum dolor</div>
        <div id="Login">Li Europan lingues<br>Li Europan lingues</div>
        <div id="Signup">xxx</div>
    </div>

</body>
</html>
empiresolutions is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-14-2007, 06:15 AM Re: Relative Positioning
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
float it
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-14-2007, 01:27 PM Re: Relative Positioning
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
What Chris Said..
Here is how to do it:
Code:
<style type="text/css" title="">
#SearchContainer    { position:absolute; z-index:1; width:210px; height:125px; border:1px solid red; }
    #SearchField    { position:relative; z-index:3; width:200px; top: 5px; border:1px solid orange; }
    #LoginMessage    { position:relative; z-index:3; width:200px; top: 10px; border:1px solid yellow; }
    #Login            { position:relative; z-index:3; width:150px; top: 20px; border:1px solid green; float:left; }
    #Signup            { position:relative; z-index:4; width: 25px; top: 20px; left: 8px; border:1px solid blue; float:left; }
    .clear {clear:both;}

</style>

</head>
<body>

    <div id="SearchContainer">
        <div id="SearchField">Epsum factorial non</div>
        <div id="LoginMessage">Lorem ipsum dolor</div>
        <div id="Login">Login Area</div>
        <div id="Signup">xxx</div>
        <br class="clear" />
    </div>

</body>
</html>
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Relative Positioning
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11351 seconds with 12 queries