Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 29th, 2006, 21: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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Sep 29th, 2006, 22:36
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 29th, 2006, 22: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;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 29th, 2006, 23:03
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 30th, 2006, 01:56
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 30th, 2006, 14:31
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 2nd, 2006, 13: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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 2nd, 2006, 13:48
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 2nd, 2006, 18: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Oct 2nd, 2006, 18:43
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 2nd, 2006, 19:26
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Oct 3rd, 2006, 19: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Oct 3rd, 2006, 19:39
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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 { }
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 06:40
IE Troubles MotorManiac Web Page Design 0 May 11th, 2008 01:01
IE troubles and more, what else is new Maverick25r Web Page Design 4 Oct 18th, 2006 18:40
PHP Troubles Maverick25r PHP Forum 1 Sep 1st, 2006 04:22
IE troubles Maverick25r Web Page Design 2 Jul 25th, 2006 00:34


All times are GMT. The time now is 19:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8