/    Sign up×
Community /Pin to ProfileBookmark

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]

[CODE]#nav {
width: 715px;
height: 145px;
margin: 0px auto 0;

}
#search {
position:absolute;
left:770px;
top:115px;
z-index:2;
width: 255px;
height: 30px;
}[/CODE]

to post a comment
CSS

0Be the first to comment 😎

×

Success!

Help @bunny1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...