| <div> Question | |
Posted: 07/06/2008 9:57 AM |
|
|
|
|
Citation |
Posts |
1253 |
Word Cnt. |
68,166 |
BDay |
Nov 9 |
Sign |
Scorpio |
Sex |
|
|
|
|
Joined: Jan 06, 2006
Local time: 11:58 AM
|
|
|
|
|
|
I'm doing a directory as part of my ticker site.
The template I'm using has a section for adsense adverts but I want to use it to advertise sites from my topsites.
If I add the code for the topsite banners they show as really tiny and squished. I took out the < div id="homex" > bit and they show up as normal but then I lose the purple headings. I can't figure it out
Any ideas?? I have brain ache!
Here's my url www.tickerplayground.com/directorynew
Here's the code in that file
Code:
|
<div id="homex">
<div class="top">
<div class="topleft"><div class="topright">
<div class="toptxt">Parenting Topsites Featured Sites</div>
</div></div>
</div>
<div class="content"><div class="contentfooter" style="text-align:center;">
<tr>
<td>
<center><b><font color="#B80909" size="2" ><center>Last Month's Winning Site ~ Congratulations!</center></font>
</td>
</table>
<br><center><a href="http://mommysbreakroom.com/index.php" target="blank"><img src="http://i36.photobucket.com/albums/e8/princessk316/Siggies%20and%2 0Blinkies/pmb.gif" border="0" /></center>
<br>
<br>
<br>
<b><font color="#B80909" size="2" ><center>Featured Topsite ~ Check them out!</center></font>
</td>
</table>
<br><center><a href="http://www.chatterscene.com/csboards/" target="blank" ><img src="http://i173.photobucket.com/albums/w76/unicorn2433/chatterbanner. gif" border="0"/></center>
<br>
</center>
</td>
</tr>
</div></div>
<div class="top">
<div class="topleft"><div class="topright">
<div class="toptxt">Latest Featured Links</div>
</div></div>
</div>
<div class="content"><div class="contentfooter" style="text-align:center;">
{foreach from=$latest_feat item=link name=links}
<div class="block">
<a href="{if !$smarty.const.ENABLE_REWRITE}
{$smarty.const.DOC_ROOT}/detail.php?id={$link.ID}
{else}
{$smarty.const.DOC_ROOT}/detail/link-{$link.ID}.html{/if}" title="{l}Read more about{/l}: {$link.TITLE|escape|trim}"><img src="http://open.thumbshots.org/image.pxf?url={$link.URL|escape}" alt="" /></a>
<br />
<div class="l"><a href="{$link.URL|escape}">{$link.TITLE|escape}</a></div>
</div>
{/foreach}
<div class="clear"></div>
</div></div>
</div>
|
|
|
|
|
|
Back to Top |
|
|
| Re: <div> Question | |
Posted: 07/07/2008 2:58 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 7:58 AM
Location: St Pete, FL
|
|
|
|
|
|
The div tag holds the key to what you need to do. The id homex is a class that is probably defined in a css file. This class defines what the look should be, so if you want to change the way something looks, you would adjust the settings for the class wherever it is defined...
Does that make any sense to you? If you can find the declaration of the homex class, I might be able to help you adjust the settings to work better on your site...
|
|
|
|
|
Back to Top |
|
|
| Re: <div> Question | |
Posted: 07/07/2008 5:06 PM |
|
|
|
|
Citation |
Posts |
1253 |
Word Cnt. |
68,166 |
BDay |
Nov 9 |
Sign |
Scorpio |
Sex |
|
|
|
|
Joined: Jan 06, 2006
Local time: 11:58 AM
|
|
|
|
|
|
Ahh yes I think I understand what you mean! I'm just off to bed now so will look tomorrow and see how I get on - thank you! |
|
|
|
|
Back to Top |
|
|
| Re: <div> Question | |
Posted: 07/09/2008 4:43 PM |
|
|
|
|
Citation |
Posts |
1253 |
Word Cnt. |
68,166 |
BDay |
Nov 9 |
Sign |
Scorpio |
Sex |
|
|
|
|
Joined: Jan 06, 2006
Local time: 11:58 AM
|
|
|
|
|
|
I did it - thank you! I took out the
values for height and width as the banners I want to display will be different sizes.
Thanks NR |
|
|
|
|
Back to Top |
|
|
| Re: <div> Question | |
Posted: 07/09/2008 9:06 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 7:58 AM
Location: St Pete, FL
|
|
|
|
|
|
Great!!! I'm glad that my explanation made sense to you. Working with classes can be very confusing to a great many people. The use of div tags can add to that confusion...
|
|
|
|
|
Back to Top |
|
|
| Re: <div> Question | |
Posted: 07/10/2008 10:39 AM |
|
|
|
|
Citation |
Posts |
1253 |
Word Cnt. |
68,166 |
BDay |
Nov 9 |
Sign |
Scorpio |
Sex |
|
|
|
|
Joined: Jan 06, 2006
Local time: 11:58 AM
|
|
|
|
|
|
Good teacher as always! |
|
|
|
|
Back to Top |
|
|
| Re: <div> Question | |
Posted: 07/10/2008 12:44 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 7:58 AM
Location: St Pete, FL
|
|
|
|
|
|
Good students can certainly make a teacher look good too!!!
|
|
|
|
|
Back to Top |
|
|
| Information | |
|