This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > css help- links?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author css help- links?
the queen is dead

2004-08-04, 11:14 pm

i'm trying to learn css... i've got the basics as far as i can control color,
background, border, etc...

i'm stuck however, all the tutorials with navbars have the links listed as: <a
href="#">

i have a page with 3 frames: navbar at the top, and two frames below... the
right frame is where i want all my navbar links to open the pages...

this seems like it should be really simple, and i feel really stupid, but i've
got about 5 or so hours into trying to figure out what i'm doing wrong.
everytime i click one of the navbar links it opens a new window with that page
in it... how do i make them open in the right frame?

thanks for reading..

-matt

Richard B.

2004-08-04, 11:15 pm

Matt,

Not sure if this helps, but the href="#" is a null link that javascript
uses. Normally the href="file_name.html" would call some file. Since you're
not calling a new page it uses the null link.



"the queen is dead" <webforumsuser@macromedia.com> wrote in message
news:cerq76$pnl$1@forums.macromedia.com...
> i'm trying to learn css... i've got the basics as far as i can control

color,
> background, border, etc...
>
> i'm stuck however, all the tutorials with navbars have the links listed

as: <a
> href="#">
>
> i have a page with 3 frames: navbar at the top, and two frames below...

the
> right frame is where i want all my navbar links to open the pages...
>
> this seems like it should be really simple, and i feel really stupid, but

i've
> got about 5 or so hours into trying to figure out what i'm doing wrong.
> everytime i click one of the navbar links it opens a new window with that

page
> in it... how do i make them open in the right frame?
>
> thanks for reading..
>
> -matt
>



DiMa *TMM*

2004-08-04, 11:15 pm

the queen is dead <webforumsuser@macromedia.com> wrote:
> i'm trying to learn css... i've got the basics as far as i can
> control color, background, border, etc...
>
> i'm stuck however, all the tutorials with navbars have the links
> listed as: <a href="#">
>
> i have a page with 3 frames: navbar at the top, and two frames
> below... the right frame is where i want all my navbar links to open
> the pages...
>
> this seems like it should be really simple, and i feel really
> stupid, but i've got about 5 or so hours into trying to figure out
> what i'm doing wrong. everytime i click one of the navbar links it
> opens a new window with that page in it... how do i make them open in
> the right frame?
>
> thanks for reading..
>
> -matt


In addition to Richard's info on null links, it's important to know that CSS
has nothing at all to do with where your links open.

Your first mistake was using frames int he first place ;) Frames are almost
ALWAYS the worse way to go in a page design. In other words, there is almost
always a BETTER way to acheive what you want. Frames are
aintermediate-advanced level html and you shouldn't even go there if you
know what's good for ya. They will nearly always bring more headaches than
they're worth. For more info on why not to use frames, go here for a short
article: http://www.apptools.com/rants/framesevil.php

To make the links open the pages in the correct frame, you need to give them
a target. Press F1 while DW is open and read about "targeting frames". This
will explain your linking problem. But beware - this is only the beginning
of the nightmare if you choose to stick with the frames idea! We'll most
certainly see you back here and if you're not already going bald...you will
;)


--
--
DiMa
Team Macromedia Member for Dreamweaver MX
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to
your posts: news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_g...dia.dreamweaver
http://www.macromedia.com/support/d.../technotes.html
http://www.projectseven.com/faqbase
http://dwfaq.com

http://www.macromedia.com/support/forums/etiquette.htm

www dot flyingtigerwebdesign dot com


E Golpe

2004-08-05, 7:15 pm

You can open your HTML reference in dreamweaver, then lookup <a href>
and look for the target attribute, this will explain how to target the
name of your frame declared in the <frameset> tag (also there int he
html ref.

One BIG disadvantage nowadays with using framesets is the ability to
employ dhtml and dynamic scripting elements across frames, just FYI.

Nothing at all to do with CSS, BTW.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews