View Full Version : div help


i'm.unhappy
10-08-2003, 11:24 PM
i have test page set up with the div code and when i minimize it gets all screwed up see for your self and why doesn't it work when i try to make the div image a link? you gotta right click it and then click on open link other wise you can go to that page why is that? my test page is at http://www23.brinkster.com/fongpayloo/tests/testpage.html
the link is the biggest flower to the right if you maximize and if you minimize it moves some other place and i don't know why

stargurl*
10-08-2003, 11:33 PM
it is not working because you didn't make the image a link, you just inserted it. You have to put this code to make an image link:

<a href="your address"><img src="blah2.html" border="0" width="##" height="##"></a>


Fill in the address you want the image to link to, and add your width and height. If you want you could change the image, I just used the one from your tester page.


Hope this helps!

starlet
10-08-2003, 11:36 PM
If you use absolute positioning you have to use it for everything, the blah2.jpg is positioned, the blah.jpg isnt so people with different resolutions will see it differently, just put that in a div too...and the code for an image link is <a href="url"><img src="imgage.jpg"></a>

Your code should be more like this...

<HTML>
<HEAD>
<TITLE>test</title>
</head>
<body>
<div id="2" style="position: absolute; top: 0px; right: 0">
<IMG SRC="blah.jpg"></div>
<div id="1" style="position: absolute; top: 139px; right: 583">
<a href="test.html"> <IMG SRC="blah2.jpg"></a>
</div>
</body></html>

i'm.unhappy
10-09-2003, 07:48 PM
Originally posted by starlet
If you use absolute positioning you have to use it for everything, the blah2.jpg is positioned, the blah.jpg isnt so people with different resolutions will see it differently, just put that in a div too...and the code for an image link is <a href="url"><img src="imgage.jpg"></a>

Your code should be more like this...

<HTML>
<HEAD>
<TITLE>test</title>
</head>
<body>
<div id="2" style="position: absolute; top: 0px; right: 0">
<IMG SRC="blah.jpg"></div>
<div id="1" style="position: absolute; top: 139px; right: 583">
<a href="test.html"> <IMG SRC="blah2.jpg"></a>
</div>
</body></html>
one more thing why does my div images get all screwed up when i minimize my IE?? and when i maximize it to full size it goes back to normal

starlet
10-09-2003, 11:56 PM
Thats just a resolution thing, when you have your window maximised everything fits on the screen as it should, when you minimise because your image/div need the set amount of width they no longer fit so have to move to fit in the screen! (im terrible at explaining stuff like this)