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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

overlapping 1

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
I hope someone can help with my div css code. I have a datagrid on the right side of the screen and some dropdowns on the left. Everything looks fine however if you shrink the browser screen, instead of getting a horizontal scroll, the divs overlap each other. Any ideas on how I can fix this?

<div style="width:75%;">
<div style="position:absolute;right:0;">
<!-- datagrid here-->
</div>

<div style="padding-bottom:2px;">
<span class="PurpleLetters" style="left:200;position:absolute;width:150px;">Reason for Appointment</span>
<span style="left:150px;position:relative;"><asp:DropDownList runat="server" CssClass="clsContentTextDDL" ID="ReasonForAppt" AutoPostBack="true" OnSelectedIndexChanged="ReasonForAppt_SelectedIndexChanged">
</asp:DropDownList></span>
</div>



</div>
 
remove position:absolute from the page. You may have to change other CSS styles to get it to look how it does now, but it won't overlap.

[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top