Forum Moderators: not2easy

Message Too Old, No Replies

css link help

         

dryedapricots

3:59 pm on Apr 29, 2008 (gmt 0)

10+ Year Member



Hi,

I'm new to css and to posting so please forgive any mistakes I might make in explaining this. I am working on my first css site and am using a left 'sidebar' which includes internal links and a title header (see below). The title is not supposed to be linked to anything and it's not for all of my pages (10+) but it is on the index page. I have tried swapping out the code from the pages where it's not linked, saving the page as something else, resaving - nothing works. Is there somewhere that links like this can hide? Also - when viewing the index page in Dreamweaver design view it doesn't show it's linked - just when it's uploaded does the link appear...

Hope this makes sense! Thanks in advance for your help.

/* Sidebar */

#sidebar {
float: left;
width: 285px;
border: 1px solid #E6E6E6;
}

#sidebar ul {
margin-left: 0;
padding-left: 0;
list-style: none;
}

#sidebar ul li {
padding-left: 5px;
}

/* Boxed */

.boxed {
}

.boxed .title {
height: 29px;
margin: 0;
padding: 12px 0 0 20px;
background: #656464 url(images/img06.gif) repeat-x;
text-transform: uppercase;
font-size: 122%;
font-weight: bold;
color: #FFFFFF;
}

JAB Creations

8:18 am on Apr 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi dryedapricots and welcome to WebmasterWorld!

Could you please also post the (X)HTML please?

- John

dryedapricots

8:48 am on Apr 30, 2008 (gmt 0)

10+ Year Member



Hi John,

This may be too much, but here's what I have for the sidebar:

<div id="sidebar">
<div id="search" class="boxed">
</div>
<div id="extra" class="boxed">
<h2 class="title">ten reasons to oppose lng </h2>
<div class="content">
<ul class="list">
<li class="first"><a href="1.html"><strong>1. LNG is a fossil fuel</strong> </a></li>
<li><a href="2.html"><strong>2. LNG is a foreign fuel</strong> </a></li>
<li><a href="3.html"><strong>3. LNG is not necessary</strong></a></li>
<li><a href="4.html"><strong>4. LNG is not green energy</strong> </a></li>
<li><a href="5.html"><strong>5. LNG threatens wildlife</strong> </a></li>
<li><a href="6.html"><strong>6. LNG is a terrorist target</strong> </a></li>
<li><a href="7.html"><strong>7. LNG reduces our quailty of life</strong> </a></li>
<li><a href="8.html"><strong>8. LNG punishes the underserved</strong> </a></li>
<li><a href="9.html"><strong>9. LNG is unsafe</strong> </a></li>
<li><a href="10.html"><strong>10. LNG is economically flawed</strong> </a></li>
</ul>
</div>

It's the 'title' section that reads 'Ten Reasons to Oppose LNG' that seems to be linked to my background.html but I cannot for the life of me figure out how. All of the other pages (1.html, 2.html, etc) do not show this title as linked, just index.html.

Thank you for your help!

dryedapricots

8:49 am on Apr 30, 2008 (gmt 0)

10+ Year Member



ps - sorry for the topical nature of the site. I hope I don't offend anyone:)

JAB Creations

9:36 am on Apr 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For clarification what is 'the title' that is not supposed to be linked to anything? Do you mean the numbers for each li element (list item)? If so change #sidebar ul {list-style: none;} to #sidebar ul {list-style: decimal;}.

Otherwise I'll need you to try to be clearer about what the issue is specifically please.

- John

dryedapricots

9:55 am on Apr 30, 2008 (gmt 0)

10+ Year Member



I mean this part:

<h2 class="title">ten reasons to oppose lng </h2>

This acts as the title for the list which is not supposed to be linked. Does that make sense?

dryedapricots

9:56 am on Apr 30, 2008 (gmt 0)

10+ Year Member



The site is currently viewable if that's helpful at all. I don't think I'm supposed to post links, so let me know...