changing code so doesn't follow screen
2 posters
Page 1 of 1
changing code so doesn't follow screen
I want it so that the images do not follow the screen
used # to hide links so cannot be classed as advertising =]
- Code:
<ul style="position:fixed;left:0;top:0%;list-style:none;">
<li><a href="http://www.facebo############4345381676" target="_blank"><img src="http://tinyurl.#######" border="0" width="40px" /></a></li>
<br><li><a href="http://www.twitter#######g" target="_blank"><img src="http://tinyurl.com######q7y" border="0" width="40px" /></a></li>
<br><li><a href="http://www.youtube.c########g" target="_blank"><img src="http://tinyurl.com#######z5e" border="0" width="40px" /></a></li>
</ul>
used # to hide links so cannot be classed as advertising =]
Re: changing code so doesn't follow screen
What do you mean? If you want that the links not be redirected in new tab of the browser:
- Code:
<ul style="position:fixed;left:0;top:0%;list-style:none;">
<li><a href="http://www.facebo############4345381676"><img src="http://tinyurl.#######" border="0" width="40px" /></a></li>
<br /><li><a href="http://www.twitter#######g"><img src="http://tinyurl.com######q7y" border="0" width="40px" /></a></li>
<br /><li><a href="http://www.youtube.c########g"><img src="http://tinyurl.com#######z5e" border="0" width="40px" /></a></li>
</ul>
Guest- Guest
Re: changing code so doesn't follow screen
Change where it says 'position:fixed' to 'position:absolute'
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: changing code so doesn't follow screen
I want it so that when I scroll down... the images do not scroll down with me, they stay by the banner at the topSpankers wrote:What do you mean? If you want that the links not be redirected in new tab of the browser:P.S. I changed also <br> with <br /> to meet XHTML.
- Code:
<ul style="position:fixed;left:0;top:0%;list-style:none;">
<li><a href="http://www.facebo############4345381676"><img src="http://tinyurl.#######" border="0" width="40px" /></a></li>
<br /><li><a href="http://www.twitter#######g"><img src="http://tinyurl.com######q7y" border="0" width="40px" /></a></li>
<br /><li><a href="http://www.youtube.c########g"><img src="http://tinyurl.com#######z5e" border="0" width="40px" /></a></li>
</ul>
Change where it says 'position:fixed' to 'position:absolute'
That doesn't work, the images ended up not appearing
Re: changing code so doesn't follow screen
It is the position:fixed bit which is making your images follow you as you scroll down, if you change it correctly then of course it will work.
Here is the modified HTML:
Here is the modified HTML:
- Code:
<ul style="position:absolute;left:0;top:0%;list-style:none;">
<li><a href="http://www.facebo############4345381676"><img src="http://tinyurl.#######" border="0" width="40px" /></a></li>
<br /><li><a href="http://www.twitter#######g"><img src="http://tinyurl.com######q7y" border="0" width="40px" /></a></li>
<br /><li><a href="http://www.youtube.c########g"><img src="http://tinyurl.com#######z5e" border="0" width="40px" /></a></li>
</ul>
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: changing code so doesn't follow screen
It isn't working...
When the code says fixed, the images show but follow the screen when I scroll down
When the code says absolute the images just don't appear.
When the code says fixed, the images show but follow the screen when I scroll down
When the code says absolute the images just don't appear.
Re: changing code so doesn't follow screen
Have you checked the top left corner of the page? That's where they should be.
Change the values of 'top' and 'left'
It makes no sense that they should disappear.
Change the values of 'top' and 'left'
It makes no sense that they should disappear.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: changing code so doesn't follow screen
You do need to remove "position:fixed" from the UL tag. However, you haven't provided enough information to solve your problem.
Where do you want the images displayed? Where is this code...template? Homepage message? Announcement?
Once you provide this info, someone should be able to solve your problem.
Where do you want the images displayed? Where is this code...template? Homepage message? Announcement?
Once you provide this info, someone should be able to solve your problem.
Guest- Guest
Re: changing code so doesn't follow screen
I want the images answer on the page as I'm going to use a different code to move them
the code is in my announcements, as is on my other forum.
it works when it says fixed... just not when it says absolute
the code is in my announcements, as is on my other forum.
it works when it says fixed... just not when it says absolute
Similar topics
» Changing the Color of your screen name?
» Changing Information screen and Search box codes
» changing the side of the screen for avatars?
» My seamless player code doesnt work
» I cant affiliate my Forum/ Code doesnt work
» Changing Information screen and Search box codes
» changing the side of the screen for avatars?
» My seamless player code doesnt work
» I cant affiliate my Forum/ Code doesnt work
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum