Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > CSS
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 10-29-2009, 12:10 PM
  #1
bunny1
Novice (Level 1)
 
Join Date: Mar 2007
Posts: 10
iTrader: (0)
bunny1 is an unknown quantity at this point
DIV Layers

Hi

I have a layer which contains a textbox and button. i have positioned them on top of an image on my page.

It works perfectly for IE and Firefox however if i change the screen dimensions it is completely out of line. I have tried making the position relative and absolute but neither work

Im hoping there is a way around this without detecting browser settings with Javascript.

Any help would be much appreciated.

Thanks

Code:
<div id="nav">
       	            
        <img src="images/navigation.png" alt="" align="top" />
       	    
        	<div id="search">
              <form id="txtSearch" method="post" action=""><input name="textfield" type="text" id="textfield" value="" size="14"  />
              <img src="images/search.png" align="texttop" >
              </form>
          </div>
Code:
#nav {
	width: 715px;
	height: 145px;
	margin: 0px auto 0;
}
#search {
	position:absolute;
	left:770px;
	top:115px;
	z-index:2;
	width: 255px;
	height: 30px;
}
bunny1 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-30-2009, 03:55 AM
  #2
¥åßßå
Blonde Bimbo
 
¥åßßå's Avatar
 
Join Date: Jul 2004
Posts: 2,244
iTrader: (0)
¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all
Code:
#nav{
position:relative;
}
That'll make your absolute work relative to #nav

¥
__________________
I may have opened the door, but you entered of your own free will

¥åßßå is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  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
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 03:23 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.