Nekem ugyan azt csinálja, csak átrakta baloldalra.
Nekem ugyan azt csinálja, csak átrakta baloldalra.
a contentbe rakjál még be szöveget és látni fogod hogy mindig jobb oldal alján marad a kép.HTML kód:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Untitled Page</title> <style> body{ position:relative; width:1000px; } .content{} .sticker{ position:absolute; right:0; bottom:0; } .clear{ clear:both; } </style> </head> <body> <div class="content"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </div> <div class="clear"></div> <div class="sticker" > <img src="http://www.google.com/intl/en_ALL/images/logo.gif" alt="" align="top" border="0" ></div> </body> </html>
No Pain, No Gain
linkbuilding.hu
ruby on rails
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
Hát ez még mindig nem az igazi. Igaz, hogy jobb oldalt van de az oldal és nem a képernyő legaljára rakja. Viszont átírtam a sticker -ben fixedre és így a firefoxnál és az operánál jónak tűnik, csak az explorernél nem akar még működni.
Ez egy működő megoldásnak tűnik a fix pozicionáláshoz http://www.howtocreate.co.uk/fixedPosition.html, de javascript expressiont tartalmaz, így mindenképpen conditional css-be tedd.
Ha nem derült volna ki, nem vagyok nagyon benne a kódolásokban, de végső esetben azért megpróbálkozok majd ezzel a scriptes dologgal.
Beírtam a 100%-ot, de nem változott semmi.
Lehet hogy rosszul írtam.
body{
position:relative;
width:1000px;
height:100%;
}
.content{}
.sticker{
position:absolute;
right:0;
bottom:0;
}
.clear{
clear:both;
}
Ha már az explorernél tartunk, ott még az oldalszélességgel is szórakozok még.
Hiába állítom át a szélességeket 100% -ra, az explorernél alul megmarad a görgetősáv. Sőt azt vettem észre, minél kisebbre állítom az oldalszélességet, annál nagyobb lesz a görgetősáv.
Találtam egy megoldást, remélem sikerül átírnom is.
<!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=ISO-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
#contain {height:3000px;}
#bigImage {margin:0 auto; width:600px; height:400px; bottom:0; right:0; background:#66FFCC; position:fixed;}
/* IE */ * html #bigImage { /*\*/position: absolute; bottom: expression((50 + (ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop)) + 'px'); right: expression((100 + (ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft)) + 'px');/**/ }
</style>
</head>
<body>
<div id="contain">
<div id="bigImage"></div>
</div>
</body>
</html>