View Single Post
Old 07-22-2010, 04:02 PM  
Zverka
Confirmed User
 
Zverka's Avatar
 
Join Date: Jun 2005
Location: EU
Posts: 278
Quote:
Originally Posted by TeenCat View Post
hi every programmer out there ... i have something for you ... i have one page, in the middle of the page is a button. now, i need that button on my page, now it is in the middle of the page, i need to work with it as i have possitiont 0,0,0 ... anybody can help? and the price please? radimcillik at gmail is taking any offers! thanks in advance and lets dance!
Here you go

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#buttonid {
position: absolute;
top: 0px;
left: 0px;
}
-->
</style>
</head>

<body>
<label>
<input type="submit" name="buttonid" id="buttonid" value="My button" />
</label>
</body>
</html>

You might change this

#buttonid {
position: absolute;
top: 0px;
left: 0px;
}

for this

#buttonid {
position: fixed;
top: 0px;
left: 0px;
}

for cool efect ;) (have in mind that ie6 and ie7 don't support fixed positioning
__________________
Zverka is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote