Forum Moderators: not2easy

Message Too Old, No Replies

problem with positioning of referrers in div tag

         

donciaz

7:37 am on Nov 14, 2009 (gmt 0)

10+ Year Member



First, sorry about my english and for possible wrong terms i'm using.

The problem i'm having is that in a fixed width and height div tag, two objects (referrers) goes not in one line (as i would like), but one below each other.. Even with a fixed height, div expands and object goes below, not in line, as i would like. As far as these object are not simple images, maybe this is impossible to deal with them?

Here is my html:

<!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">
<!--
.reklama {
width: 300px;
margin-right: auto;
margin-left: auto;
height: 31px;
}
-->
</style>
</head>

<body>
<div class="reklama">
<a target=_blank href="http://www.example.com/refer.php?12369">88x31.lt</a>
<script language=javascript src="http://www.example.com/serve.php?11786,1,1"></script><br>
</div>
</body>
</html>

[edited by: bill at 8:00 am (utc) on Nov. 14, 2009]
[edit reason] Please use example.com [/edit]

D_Blackwell

8:00 am on Nov 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome donciaz. The personal links are going to get chopped, so I cannot use as a reference.

.....and object goes below.....

I would be more concerned with width: than height. Obviously, the link takes almost no width: - Therefore, am inclined to ask what the JS is inserting and how. ?

donciaz

8:16 am on Nov 14, 2009 (gmt 0)

10+ Year Member



D_Blackwell, thank you for reply.

Talking about the link, in this example i could use any other image, it's ok with it's positioning, the main problem is with this JS, which always goes below.

Answering to your question, JS is inserting a picture of size of 88x31. How? I'm actually not sure:)

donciaz

8:34 am on Nov 14, 2009 (gmt 0)

10+ Year Member



hmmm i solved the problem with div inside a div and floating, but is there any other simplier solution to this issue?:)

donciaz

9:43 am on Nov 14, 2009 (gmt 0)

10+ Year Member



And it still doesnt work work with IE 6.0, Mozilla, only works with Opera:((

swa66

11:03 am on Nov 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to figure out what your javascript is generating.

I use the web developer toolbar add-on in firefox for that. It has an "view generated source" that shows the output of the scripts.
Firebug probably can do it too.

donciaz

11:38 am on Nov 14, 2009 (gmt 0)

10+ Year Member



here what it gives for JS. What should i do now?:)

<script language="javascript" src="http://www.example.lt/serve.php?11786,1,1"></script><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="88" height="31"><param name="movie" value="http://www.example.lt/banners/2030.swf?clickTag=http%3A%2F%2Fwww.example.lt%2Fclick.php%3F11786%2C2030%2Cgdq1rrsk1k6x&amp;clickWindow=_top&amp;clickTAG=http%3A%2F%2Fwww.88x31.lt%2Fclick.php%3F11786%2C2030%2Cgdq1rrsk1k6x"><param name="quality" value="high"><embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.example.lt/banners/2030.swf?clickTag=http%3A%2F%2Fwww.example.lt%2Fclick.php%3F11786%2C2030%2Cgdq1rrsk1k6x&amp;clickWindow=_top&amp;clickTAG=http%3A%2F%2Fwww.example.lt%2Fclick.php%3F11786%2C2030%2Cgdq1rrsk1k6x" width="88" height="31"></object></td></tr></tbody></table><br></div>
</div>

</body></html>