TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 136
  • Total: 136

html side menu - help

Started by rockskullz, October 04, 2007, 04:16:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rockskullz

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" />&nbsp;</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" />&nbsp;</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" />&nbsp;</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" />&nbsp;</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" />&nbsp;</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.


Resident Geek

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" />&nbsp;</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" />&nbsp;</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" />&nbsp;</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" />&nbsp;</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" />&nbsp;</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!

Lesmond

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">&nbsp;<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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</b><a href="http://offroad-review.com/new/index.php?cat=25"><b>Press Release</div>

Resident Geek

But you have to have it between:

echo'

and

';


in a php block. Its the HTML block that's screwing you up. ;D

Lesmond

But I think he was using a html/bbc block and that will "screw" things up ;)


this one made with a script block

jacortina

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" />&nbsp;</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" />&nbsp;</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" />&nbsp;</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" />&nbsp;</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" />&nbsp;</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>

jacortina

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).

rockskullz

You guys rock! I changed each menu block to a scriptbox and it works great and matches the theme now. Thanks!

This website is proudly hosted on Crocweb Cloud Website Hosting.