Jump to content

Simple CSS Issue How to use link


vishalonne

Recommended Posts

Hello All

 

I am developing 1 very simple site and I am totally confused "HOW TO DISPLAY MY DIFFERENT CONTENTS IN <DIV>".

Detail -

My links as are in left side in <DIV class="image002-03"> and on clicking on them I just want to display the content of link in Mid of the page in <DIV class="image002_10">

 

Like if I click in Sample Paper link content of the link that is No of Sample Sets like this -

  • Set 1
  • Set 2
  • Set 3
  • Set 4

should display in imagae002_10 div.

And if I click on Notes link then in same Div i.e. image002_10 should display the content of the link that is Chapter Names like this -

  • Chapter ABC
  • Chapter XYZ
  • Chapter MNO
  • Chapter POI
  • Chapter LMK

.

How can do this please guide me.

Here is the HTML code

<div class="panel_container">
    <div class="image002-03">
        <span id="smalltext" 
            style="bottom: 0px; margin-bottom: 0px; padding-bottom: 0px; font-family: Calibri; font-size: large; text-align: center;">Service Menu</span>
      <ul class="serviceul">
     	<li class="serviceli">Question Papers (unsolved)</li>
                                    <li class="serviceli">Question Papers (solved)</li>
	<li class="serviceli">Sample Papers</li>
	<li class="serviceli">Notes</li>
	<li class="serviceli">Solved Assignments</li>
	<li class="serviceli">Projects</li>
	<li class="serviceli">Presentations</li>
	<li class="serviceli">Uploads</li>
	<li class="serviceli">Forum</li>
                        </ul>
</div>

<div class="image002-07">  Site Map</div>
<div class="image002-08">  Advertisement </div>
<div class="image002-09">  Advertisement </div>
<div class="image002-10">  Here the content of link should display </div>
<div class="image002-11"> </div>
<div class="image002-13">Footer</div>
</div>

//And CSS Code
DIV.image002-03
{
position: relative;
left: 49px;
top: 0px;
width: 208px;
height: 238px;
border: thin solid #000000;
}
DIV.image002-07
{
position: absolute;
left: 266px;
top: 174px;
width: 973px;
height: 24px;
border: thin solid #000000;
}
DIV.image002-08
{
border: thin solid #000000;
position: absolute;
left: 277px;
top: 203px;
width: 953px;
height: 109px;
}
DIV.image002-09
{
position: relative;
left: 49px;
top: 4px;
width: 208px;
height: 315px;
border: thin solid #000000;
}
DIV.image002-10
{
position:absolute;
left:283px;
top:355px;
width:806px;
height:211px;
}
DIV.image002-11
{
border: thin solid #000000;
position: absolute;
left: 266px;
top: 320px;
width: 973px;
height: 413px;
}
DIV.image002-13
{
position: absolute;
left: 48px;
top: 739px;
width: 1192px;
height: 52px;
border: thin solid #000000;
}

Thank you All In Advance with lots of expectation.

Link to comment
Share on other sites

That's quite an odd request and I am not sure what the implications will be for your seo. But...

 

So as I understand it you want to load different content into a single div depending on the link pressed?

 

You can achieve this by:

 

a) Loading your content into the page and hiding it all by default with css (display:none). Then you can use jquery or javascript on your links to optionally display or hide the content.

 

b) Use iframes.  So you place the links on your main page and place the various pieces of content in separate html files. You then use a target attribute on the link to target your iframe. Probably the worst practice for seo.

 

c) Bit more complex but - use ajax to optionally swap the content in the div.

 

d) Create each link so that it points back to the page only with a query string on each link - then using php you optionally incorporate content based on the query string

 

Those are a few suggestions for doing it, if i understand your issue properly that is! What you choose to do depends on a lot of things but those suggestions may put you on the right track.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.