Forum Moderators: open

Message Too Old, No Replies

base tag

base tag cause problem in my page.

         

perikita

9:41 pm on Dec 10, 2004 (gmt 0)

10+ Year Member




Well I really don't know if I am doing well or not, it is my first post in this forum so well...

Hello everyone,

Everything was perfect in my localhost until I uploaded my site, of course links and everything had to be changed.. I did it already but somehow they were acting funny so I wrote the <base href=""> tag and my page in IE doesn't respect my css margins. I really don't know if I can paste here the link of my site... I think it would be better for you to see... But I don't know if it is all right...

Thanks for any help you could give me

tedster

10:08 pm on Dec 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forum, perikita.

No, we don't allow links to members' websites here (see Terms of Service [webmasterworld.com]) and that does mean we need work a bit harder to describe the issues in words so others can help out. But it also means that even when the page is changed, the conversation will help many, many people in the future.

So let's dig in. If you help us by explaining what "acting funny" means that would be a first step.

Also note:

- CSS [webmasterworld.com] has its own forum

- WYSIWYG Editors [webmasterworld.com] like FrontPage and Dreamweaver also
have a dedicated forum.

- New To Web Development [webmasterworld.com] may also be a comfortable
place to discuss your questions, if this is your first time
using any particular development tool.

perikita

10:32 pm on Dec 10, 2004 (gmt 0)

10+ Year Member



Thanks a lot for your help and sorry for my non-technical vocabulary... I am adult learner and I lack the lingo...

My problem is that I wrote all the links in my page like this
<a href="http://localhost/index.php"> </a>... so then when I upload the site I had to change localhost for my domain name... I thought it would be the only thing I had and everything would be ok but it wasn't. Ok. I have my index.php and 3 subdirectories with pages that are linked to the index.php the problem is that if I click in the subdirectory 1 page 3 and I want to go to my subdirecory 3 page 2 doesn't work ... I have my navigation in php include. It was the real problem.. I looked up for a tutorial to tell me how to handle the thing with the links probably I needed to understand how they really work. Ok I did it and found that with the <base href="mydomain.com/index.php"> in my index.php page all my links would have a sort of base or parameter to follow... Ok. I did it. My page was looking normal I wrote the link after the title as it was said and my page with IE change the margin of the main box in CSS... and now covers all the screen.

That is why I thought it would be ok to ask in this forum.... but Could you tell me if it is a question for another forum please?

Thanks a lot a sorry for the flag I was a little hysteric :)

tedster

10:43 pm on Dec 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think I get it.

If you are including the exact same code in the menu on every page, no matter how deep into the directory structure, then I think you will need to use the full, "absolute" urls in the included menu and not use any relative links at all.

Absolute URL:
http://www.example.com/dir1/page.html

Relative URLs:
index.html
dir3/page.html
../dir1/page.html

Of course, the nice thing about using an include - you only have to make one set of changes instead of making them on every page.

[edited by: tedster at 11:31 pm (utc) on Dec. 10, 2004]

perikita

11:29 pm on Dec 10, 2004 (gmt 0)

10+ Year Member



Thanks a lot it is working fine. Now I understood.. the thing is that I wanted to learn how to write the pages myself and I am not using any program like FrontPage and the links have been always my problem.
I saw that you have a forum for newbies so I think that could be my forum...

Thanks again for your help :)

Have a beautiful day!