Support Forums

Old 09-10-2008, 10:19 AM   #1
Senior Member
 
 
Join Date: Jan 2007
Posts: 290
Rep Power: 15
michael is on a distinguished road
Default Can't shift an annoying Bullet Point!

It's in the sidebar under the searchbox by the link to 'advanced search'. It's visible in all browsers but particularly noticeable in Firefox.

Here is my layout.tpl code, I've highlighted the area where I think the fault lies but I'm damned if I can see it.

Thanks.

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

Name : Extended
Description: A two-column, fixed-width, Web 2.0 design.
Version : 1.0
Released : 18th September 2007

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title> MKClassifieds - Where Milton Keynes buys & Sells</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="http://www.mkclassifieds.co.uk/templates/extended/default.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<!-- start header -->
<div id="header">
<div id="logo">
<h1>Mkclassifieds</h1>
<p>where Milton Keynes buys and sells</p>
</div>
<div id="banner">
<br>
<font face="Verdana" size="1">
{if $smarty.session.username<>'' || $smarty.cookies.username<>""}
Welcome <b>{$smarty.session.username}.
{if $pmon=="Y"}
</b>
<a STYLE="text-decoration:none" href="private.php">Private Messages:</a> Unread {$unreadpms}, Total {$totalpms}.
{/if}
{else}
Welcome Guest       [<a STYLE="text-decoration:none" href="login.php">Login</a>, <a STYLE="text-decoration:none" href="userjoin.php">Register</a>]
{/if}
</a></font>

</div>
</div>
<!-- end header -->
<!-- start menu -->
<div id="menu">
<ul>
<li{if $body=='home.tpl'} class="current_page_item"{/if}><a href="http://www.mkclassifieds.co.uk/">Homepage</a></li>
{if $smarty.session.username<>'' || $smarty.cookies.username<>""}
<li{if $body=='user/userindex.tpl'} class="current_page_item"{/if}><a href="{$smarty.const.URL}/logout.php">Logout</a></li>
{else}
<li{if $body == "user/userlogin.tpl"} class="current_page_item"{/if}><a href="login.php">Login</a></li>
{/if}
<li{if $body=='categories/browse.tpl'} class="current_page_item"{/if}><a href="http://www.mkclassifieds.co.uk/category.php">All Categories</a></li>
<li{if $smarty.get.page==6} class="current_page_item"{/if}><a href="{$smarty.const.URL}/pages.php?page=6">Your Store</a></li>
<li{if $body=='contact/contactus.tpl'} class="current_page_item"{/if}><a href="http://www.mkclassifieds.co.uk/contactus.php">Contact Us</a></li>
<li{if $body=='search.tpl'} class="current_page_item"{/if}><a href="http://www.mkclassifieds.co.uk/search.php">Advanced Search</a></li>
</ul>
</div>
<!-- end menu -->
<!-- start page -->
<div id="page">
<!-- start content -->
<div id="content">
<h1 class="pagetitle">Welcome to MKClassifieds</h1>
<a href="http://www.mkclassifieds.co.uk/external.php?cat=" id="rss-posts">RSS Feeds</a>
<div class="post">


<!-- // Content // -->

{* This includes the content portion *}
{include file=$body}

<!-- // End Content // -->

</div>
<div class="post">
 </div>
</div>
<!-- end content -->
<!-- start sidebar -->

<div id="sidebar">

<h2>Search</h2>
<br><div>
<form align="center" method="get" action="searchresults.php">

<input id="s" type="text" name="s" value="" />
<input id="x" type="submit" value="Search" />

</form></div>
<li><ul>
<li><a href="http://www.mkclassifieds.co.uk/search.php">advanced search</a></li>
</ul></li>

<ul>

{if $smarty.session.username<>'' || $smarty.cookies.username<>""}
<li>
<h2>Members Menu</h2>
<ul>
<li><a href="http://www.mkclassifieds.co.uk/userindex.php">My Account</a></li>
<li><a href="http://www.mkclassifieds.co.uk/userfavorites.php">My Favourites</a></li>
<li><a href="http://www.mkclassifieds.co.uk/usercheckout.php">Place An Ad'</a></li>
<li><a href="http://www.mkclassifieds.co.uk/userbrowselistings.php">Modify An Ad'</a></li>
<li><a href="http://www.mkclassifieds.co.uk/logout.php">Logout</a></li>
<li><a href="{$smarty.const.URL}/modules.php?mod=maffo_news&pg=LN">News</a></li>
<li><a href="modules.php?mod=seller_store">My Store</a></li>
</ul>
</li>
{/if}

<li>
<h2>Categories</h2>
{categories_parent}
<ul>
{foreach from=$pcat item=entry}
<li>{$entry.link}</li>
{/foreach}
</ul>

<h2>Featured Ads</h2>
<br>
{feature_listings_horizontal number=10 cols=2 table_attr='width="100%" cellpadding="4" cellspacing="0"' td_attr='valign="middle" align="center"' style="border-top: 0px dashed #999;"'}
<ul>
</div>
<!-- end sidebar -->
<div style="clear: both;"> </div>
</div>
<!-- end page -->
<div id="footer">
<p>©2007 All Rights Reserved.  •  Design by freeCSStemplates. Modified by <a href="http://www.mkwebsite.co.uk/">mkwebsite</a></p>
</div>
</body>
</html>
__________________
v4.1 Developer


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 09-10-2008, 10:33 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,106
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

All that code does little to help witout being able to see the CSS. do you have alink?

Nevermind I pulled it from you above code but I guess I dont see what it is your talking about.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 09-10-2008, 10:37 AM   #3
Moderator
 
 
Join Date: Mar 2006
Posts: 4,106
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

For starters you have a nested list so you have a stray bullet in there, get rid of that.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 09-10-2008, 10:49 AM   #4
Senior Member
 
 
Join Date: Jan 2007
Posts: 290
Rep Power: 15
michael is on a distinguished road
Default

Hi Larry

Yes I can see that the list is nested here;

Quote:
</form></div>
<li><ul>
<li><a href="http://www.mkclassifieds.co.uk/search.php">advanced search</a></li>
</ul></li>
But removing either one of the pairs of <li></li> tags removes both bullet points! What's that all about?

__________________
v4.1 Developer


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 09-10-2008, 10:52 AM   #5
Moderator
 
 
Join Date: Mar 2006
Posts: 4,106
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by michael View Post
Hi Larry

Yes I can see that the list is nested here;



But removing either one of the pairs of <li></li> tags removes both bullet points! What's that all about?

Tats because your not using the tags properly to begin with.

HTML Lists
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 09-10-2008, 07:30 PM   #6
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,328
Rep Power: 39
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

I see what's going on. As Larry pointed out, you are not using the <ul><li> tags correctly. In looking at your code, I see why. You are using your stylesheet margins and padding as indents for your html code.

Without having to correct all of your code, just simply add this to your stylesheet declaration for sidebar li: list-style-type:none;

That should correct your woes, but it just ain't right!

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 09-15-2008, 05:23 AM   #7
Senior Member
 
 
Join Date: Jan 2007
Posts: 290
Rep Power: 15
michael is on a distinguished road
Default

Hi Larry, Hi Mike,

Thanks for the advice. Before I resorted to your CSS fix Mike I tried everything to clean up my code and correct the problem at source. I just couldn't do it no matter what I tried.

Your recommendation to add list-style-type:none; to my stylesheet declaration for sidebar li: works beautifully in Opera, Firefox and Google Chrome but as always IE just sucks!

As always any advice would be greatly appreciated.

Thanks,
__________________
v4.1 Developer


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:34 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0