View Full Version : DIV Target to Middle
toxic_diamonds
07-03-2008, 01:55 PM
I have set up and linked some pages together so when I click a link on the left, (this is about Divs) it targets to the middle using the code below.
<a href=".php" class="subnav">Link Text</a>
I would like to target the page which I have clicked on to have another link, where it will be able to target on the middle too. Is that possible?
I'm guessing I have to replace the "class" part but I'm not sure with what...
Thanks!
diamondicing
07-03-2008, 02:01 PM
hmmm
i thought you could only target to the middle if the center is an iframe?
if it is an iframe in the middle you put target="center" or whatever you've named your center frame. :)
hope this helps
toxic_diamonds
07-03-2008, 02:03 PM
Thanks for your reply - I know how to target for i-frames...but not divs. :s
Can anybody else help? As I have a LOT of pages and I'm not too keen on the visitor scrolling down 100000 links by placing them all down the left div.
Oh, and does anybody know how to hide your email address on your profile information as I've noticed an upgrade in the system. Thanks again.
*vampires!
07-03-2008, 02:04 PM
you can't target divs, you have to put the div code on every page--you use php includes.
diamondicing
07-03-2008, 02:15 PM
^ thats what i was also going to explain, but was a little unsure about what you meant
toxic_diamonds
07-03-2008, 02:15 PM
Does php include mean header and footer? Because I'm already using that.
I'll show you what I mean...on Christine's site, http://www.sugarysweet.net/
And there are links on the left side - ie you/me etc and then there comes a list of content...and when you click one of the content items, example: backgrounds then the page will load in the exact same page when clicked.
Does that make any sense?
diamondicing
07-03-2008, 02:16 PM
yes, it does but you can put like your nav menu on the header so every page has it
toxic_diamonds
07-03-2008, 02:23 PM
My nav menu is in my header!
That's...header.php
And every content page starts with the php header include URL.
diamondicing
07-03-2008, 02:32 PM
sorry
no idea then :/
*vampires!
07-03-2008, 02:40 PM
you have the div coding in the header right?
then put the header code at the top of the new page, along with the footer, etc...put the content between the codes. to link to it, simply link to the page.
<a href="LINK.PHP" title="">LINK</a>
the content will show up in the main div, as long as you have the main div coding start (<div>) in the header, and in the footer you have the closing tag (</div>).
toxic_diamonds
07-03-2008, 02:45 PM
Don't worry! :D Thanks for your help - I appreciate it!
-----
Thank you Ellie! :D It worked! ;)
Problem solved!
Thanks everyone!
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.