Link Troubles

This is a discussion on "Link Troubles" within the Web Page Design section. This forum, and the thread "Link Troubles are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 29th, 2006, 20:59
Junior Member
Join Date: Jul 2006
Location: Maine
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Link Troubles

How come when I preview the page in the browser each one of these links when clicked on except for approach goes to industryaffiliations.html

Code: Select all
<div id="infoapproach" class="sidenav">
  <a href="approach.html" class="sidenav">OUR APPROACH</a><br />
  <br />
&nbsp;&nbsp;&nbsp;<a href="safety.html" class="sidenav">Safety</a><br />
&nbsp;&nbsp;&nbsp;<a href="projectcontrols.html" class="sidenav">Project Controls</a><br />
&nbsp;&nbsp;&nbsp;<a href="industryaffiliations.html" class="sidenav">Industry Affiliations</a></div>
Reply With Quote

  #2 (permalink)  
Old Sep 29th, 2006, 21:36
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Link Troubles

There is no immediately obvious reason.

Are you previewing on your own system or on a hosted system?

If it's the latter, gives a link so we can see the pages and there code.
Reply With Quote
  #3 (permalink)  
Old Sep 29th, 2006, 21:38
Junior Member
Join Date: Jul 2006
Location: Maine
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Link Troubles

Its on my own system...

Here is the css for the sidenav if this helps

Code: Select all
.sidenav {
	font-size:12px;
	font-family:arial;
	color:#FFFFFF;
	padding-top:20px;
	text-align:left;
	padding-left:32px;
	text-decoration:none;
}
Reply With Quote
  #4 (permalink)  
Old Sep 29th, 2006, 22:03
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Link Troubles

What is with all the non breaking spaces? This would be much more efficient as a styled list. Not what you wanted to know but eh..

<ul class="sidenav">
<li><a href="approach.html" class="sidenav">OUR APPROACH</a></li>
<li><a href="safety.html" class="sidenav">Safety</a></li>
<li><a href="projectcontrols.html" class="sidenav">Project Controls</a></li>
<li><a href="industryaffiliations.html" class="sidenav">Industry Affiliations</a></li>
</ul>

Then style it with CSS accordingly.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #5 (permalink)  
Old Sep 30th, 2006, 00:56
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Link Troubles

I'm assuming the non-breaking spaces were just to move the text over. In moojoo's code (which is what you should be using), you can add padding to do the same thing:

Code: Select all
.sidenav li {
    padding: 0 0 0 10px;
}
In case you're unfamiliar with shorthand, that's the same thing as:

Code: Select all
.sidenav li {
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 10px;
}
The order for shorthand goes top right bottom left.
Reply With Quote
  #6 (permalink)  
Old Sep 30th, 2006, 13:31
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Link Troubles

Styling niceties aside, they are niether the cause nor solution of the problem described.

If you are able upload the page with its problem links and see if you have the same problem and also give us the link.

This looks like redirection but the question is what's causing it.
Reply With Quote
  #7 (permalink)  
Old Oct 2nd, 2006, 12:30
Junior Member
Join Date: Jul 2006
Location: Maine
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Link Troubles

I posted the page online and the links work fine. Why is it having problems with redirection on my system only?
Reply With Quote
  #8 (permalink)  
Old Oct 2nd, 2006, 12:48
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Link Troubles

Beh windows... No idea why it wouldn't work locally, I bet the address bar would tell you in the file://hdjkhdajkdajk/dhasjhajk/foo.html whatever
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #9 (permalink)  
Old Oct 2nd, 2006, 17:23
Junior Member
Join Date: Jul 2006
Location: Maine
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Link Troubles

I hate to say it, but i am running osx. It does sound like something stupid windows would do though.
Reply With Quote
  #10 (permalink)  
Old Oct 2nd, 2006, 17:43
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Link Troubles

I use the built-in Apache server daily and have never experienced a problem like that. Might've just been a fluke.
Reply With Quote
  #11 (permalink)  
Old Oct 2nd, 2006, 18:26
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Link Troubles

OS X I can help you with!

Are the files in HD/Library/Web Server/Documents? And do you have web sharing enabled in the sharing prefs pane? I have PHP, MySQL etc all stored locally for various testing things, have a few CM's installed to play with etc etc.. If the above two mentuioned things are done then it should work.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #12 (permalink)  
Old Oct 3rd, 2006, 18:35
Junior Member
Join Date: Jul 2006
Location: Maine
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Link Troubles

Now I have my nav list set up like so:

Code: Select all
<div id="infoapproach" class="sidenav">
<ul class="sidenav">
<li><a href="safety.html" class="sidenav">OUR APPROACH</a></li>
<br />
<li><a href="safety.html" class="sidenav">Safety</a></li>
<li><a href="projectcontrols.html" class="sidenav">Project Controls</a></li>
<li><a href="industryaffiliations.html" class="sidenav">Industry Affiliations</a></li>
</ul></div>
and my css like so:
Code: Select all
.sidenav li a {
	font-size:12px;
	font-family:arial;
	color:#FFFFFF;
	padding: 30px 0px 0px 0px;
	margin: 0px;
	text-align:left;
	text-decoration:none;
}

.sidenav {
	font-size:12px;
	font-family:arial;
	color:#FFFFFF;
	padding: 10px 0px 0px 30px;
	margin: 0px;
	text-align:left;
	text-decoration:none;
	list-style-type: none;
}
I can't for some reason figure out how to move everything below approach over to the right more without using $nbsp. I tried making another class for everything below apporoach, but when i start messing with the padding nothing happens.
Reply With Quote
  #13 (permalink)  
Old Oct 3rd, 2006, 18:39
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Link Troubles

instead of using a <br> in the list use <li>&nbsp;</li> also you can apply classes to individual li's for different margins, padding etc.. Are the links at least working now?

i.e.

.sidenav li.foo a { }
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
Reply

Tags
css

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
having some troubles luv2php PHP Forum 7 May 26th, 2008 05:40
IE Troubles motormaniac Web Page Design 0 May 11th, 2008 00:01
IE troubles and more, what else is new Maverick25r Web Page Design 4 Oct 18th, 2006 17:40
PHP Troubles Maverick25r PHP Forum 1 Sep 1st, 2006 03:22
IE troubles Maverick25r Web Page Design 2 Jul 24th, 2006 23:34


All times are GMT. The time now is 22:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43