I know this forum isnt meant for html help but i've been wanting to change this on my forum and keep scratching my head because the html looks fine to me. Can someone please look at it?
Problem: I want everything pushed up together not spaced out between each menu item. From my past knowledge with html the code < p > always gave a space between lines while < br > made them right below each other but on a new line.
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/home.gif" /> </strong><a href="http://www.offroad-review.com/new/index.php"><font face="Verdana" color="#ffffff" size="1"><strong>Home</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/forum.gif" /> </strong></font><a href="http://www.offroad-review.com/new/index.php?action=forum"><font face="Verdana" color="#ffffff" size="1"><strong>Forum</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/links.gif" /> </strong></font><a href="http://offroad-review.com/new/index.php?action=links"><font face="Verdana" color="#ffffff" size="1"><strong>Link Directory</strong></font></a><br />
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/shop.gif" /> </strong><a href="http://offroad-review.com/new/index.php?page=9"><font face="Verdana" color="#ffffff" size="1"><strong>Project Vehicles</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/rss.gif" /> </strong></font><a href="http://offroad-review.com/new/index.php?cat=25"><font face="Verdana" color="#ffffff" size="1"><strong>Press Release</strong></font></a>
Looks like this now.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.rockskullz.com%2Fuploads%2Frockskullz%2Fmenu.jpg&hash=737da33f73fd405f33948372b398ee48800978f6)
I had the exact same issue once.
Use this in a php box:
echo'
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/home.gif" /> </strong><a href="http://www.offroad-review.com/new/index.php"><font face="Verdana" color="#ffffff" size="1"><strong>Home</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/forum.gif" /> </strong></font><a href="http://www.offroad-review.com/new/index.php?action=forum"><font face="Verdana" color="#ffffff" size="1"><strong>Forum</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/links.gif" /> </strong></font><a href="http://offroad-review.com/new/index.php?action=links"><font face="Verdana" color="#ffffff" size="1"><strong>Link Directory</strong></font></a><br />
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/shop.gif" /> </strong><a href="http://offroad-review.com/new/index.php?page=9"><font face="Verdana" color="#ffffff" size="1"><strong>Project Vehicles</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/rss.gif" /> </strong></font><a href="http://offroad-review.com/new/index.php?cat=25"><font face="Verdana" color="#ffffff" size="1"><strong>Press Release</strong></font></a>
';
The HTML box tend to ruin things by spacing them out.
Good luck!
You Could also try this in a script block, this will also pick-up on what ever font and color you theme is using :)
<div class="smalltext">
<img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/home.gif"> <a href="http://www.offroad-review.com/new/index.php"><b>Home</a></b><br>
<img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/forum.gif"> </b><a href="http://www.offroad-review.com/new/index.php?action=forum"><b>Forum</b></a><br>
<img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/links.gif"> </b><a href="http://offroad-review.com/new/index.php?action=links"><b>Link Directory</b></a><br>
<img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/shop.gif"> </b><a href="http://offroad-review.com/new/index.php?page=9"><b>Project Vehicles</b></a><br>
<b><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/rss.gif"> </b><a href="http://offroad-review.com/new/index.php?cat=25"><b>Press Release</div>
But you have to have it between:
echo'
and
';
in a php block. Its the HTML block that's screwing you up. ;D
But I think he was using a html/bbc block and that will "screw" things up ;)
this one made with a script block
It 'screws it up' because the newlines get doubled.
The html block treats the internal newlines as, well, newlines. So when you code a < br > follwed by a (carriage return / line feed), the result is actually 2 CR/LFs being output.
Take out the 'extra' < br >s and you can use an HTML block just fine:
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/home.gif" /> </strong><a href="http://www.offroad-review.com/new/index.php"><font face="Verdana" color="#ffffff" size="1"><strong>Home</strong></font></a>
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/forum.gif" /> </strong></font><a href="http://www.offroad-review.com/new/index.php?action=forum"><font face="Verdana" color="#ffffff" size="1"><strong>Forum</strong></font></a>
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/links.gif" /> </strong></font><a href="http://offroad-review.com/new/index.php?action=links"><font face="Verdana" color="#ffffff" size="1"><strong>Link Directory</strong></font></a>
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/shop.gif" /> </strong><a href="http://offroad-review.com/new/index.php?page=9"><font face="Verdana" color="#ffffff" size="1"><strong>Project Vehicles</strong></font></a>
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/rss.gif" /> </strong></font><a href="http://offroad-review.com/new/index.php?cat=25"><font face="Verdana" color="#ffffff" size="1"><strong>Press Release</strong></font></a>
BTW, this is pretty much the same behavior that exists in the forum message post boxes. When you hit the -enter- key in the middle of a post, what gets posted includes a newline right there where you pressed -enter-. And when you code in a string of (no dashes) <-b-r-> followed by -enter- like this:
then you get 2 newlines in a row (one at the end of the text followed immediately by another).
You guys rock! I changed each menu block to a scriptbox and it works great and matches the theme now. Thanks!