Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Positioning prob

Status
Not open for further replies.

JimJx

Technical User
Feb 16, 2001
202
US
Hi all,

Hopefully quick question for someone who knows CSS better than I.

Problem: I have a page that displays a graphic, and is then supposed to display text below it. Should be easy enough I would think. The graphic displays at the proper postion, but instead of the text displaying below the graphic, it displays under the graphic. I hope the makes sense. :)

Anyway, the CSS is:
Code:
.MainWindow{
    position: absolute;
    max-width: 800px;
    width: expression(document.body.clientWidth > 800? "800px": "100%" ); 
    font-family:Trebuchet MS, Arial, Helvetica, sans-serif; 
    font-size:Medium; 
    color:#AF31F4; 
    background-color:white;    
    Height: auto;
    margin: 0 auto ;    
}

.ShowCards {
    position: absolute;
    vertical-align: top;
    margin: 0 auto;
    top: 2px;
    width: 640px;
    height: auto;
    Left: 200px;
    COLOR: #AF31F4; 
    FONT-FAMILY: Verdana, Helvetica, sans-serif; 
    FONT-SIZE: 11pt; 
    FONT-WEIGHT: bold; 
}

.Location {
position: absolute;
top: 25px;
left: 460px;
width: 85px;
height: 110px;
text-align: center; 
}

.Text {
position: absolute;
top: 125px;
top-margin: 20px;
left: 10px;
width: 500px;
}

And the HTML is:
Code:
<DIV CLASS="MainWindow">
<DIV CLASS="ShowCards">
<div id="printReady">
<DIV CLASS="Location">
1<BR>
<img src="graphic.jpg">
</DIV>

<DIV CLASS="Text">
<font color="#FF0000"><TEXT></FONT>

</DIV>
</DIV>
</DIV>

So, if anyone can offer any suggestions, I would be very grateful.
Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top