Log in

View Full Version : show in line 3 java's



auriaks
02-27-2010, 08:16 PM
Hi,

I have 3 javascripts:


<script language=javascript src='http://www.120x60.lt/serve.php?12568,2,1'></script><a target=_blank href='http://www.120x60.lt/refer.php?12843'><font color='yellow'><b>120x60.lt</b></font></a>

<script language=javascript src='http://www.120x60.lt/serve.php?12568,2,1'></script><a target=_blank href='http://www.120x60.lt/refer.php?12843'><font color='yellow'><b>120x60.lt</b></font></a>

<script language=javascript src='http://www.120x60.lt/serve.php?12568,2,1'></script><a target=_blank href='http://www.120x60.lt/refer.php?12843'><font color='yellow'><b>120x60.lt</b></font></a>


I want to write them in one line, but they automatically gets <br/> and the output is in 3 lines. How this can be done via css??

auriaks
02-28-2010, 07:43 AM
it is even possible? because there are 3 script tags

simcomedia
02-28-2010, 07:56 PM
You need to put each one into a container div then put the 3 divs into one container. Like this



<div id="container">
<div id="scriptholder">Put script tag in here</div>
<div id="scriptholder">Put script tag in here</div>
<div id="scriptholder">Put script tag in here</div>
</div>


with the CSS something like:



#container {
width: 400px;
height: 60px;
}

#scriptholder {
float: left;
width: 120px;
margin-left: 10px;
}



That should line them up left to right.

auriaks
02-28-2010, 09:13 PM
thanks, working well :)