hi guys, today i want to ask again, let say i have a website and the front page is index.htm
now i have some image and i want to make it float on the index.htm on the left side, how can i do this?
thank you before guys![]()
hi guys, today i want to ask again, let say i have a website and the front page is index.htm
now i have some image and i want to make it float on the index.htm on the left side, how can i do this?
thank you before guys![]()
Give style:
Or give class:Code:<img style="float:left" src="images/img1.jpg" title="myimage" />
CSS
HTMLCode:<style> .myimage{ float:left; } </style>
Code:<img src="myimage.jpg" title="myimage" class="myimage"/>
sorry but i tried and it didnt work, what i mean by float is when we scroll down the page the image follows to scroll down,its called floating right? sorry if i got the wrong name for it,,
but thanks before for the answer![]()
you mean you want the element to always stay in the same place in the browser window? Use css (for example, this div will always stay in the top left corner of the screen):
Code:<div style="position: fixed; top: 0px; left: 0px"> </div>
k12onos (07-06-2008)
what if i want to make it at the bottom of the page? i mean everyone's screen is in different size, so how do i make it always in bottom?
Code:<div style="position: fixed;bottom: 10px; left: 0px"> </div>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
k12onos (07-06-2008)
wow thanks a lot jscheuer1 !
will try it right away
thanks again!
Bookmarks