Using Links Within CSS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Drew Richardson

    Using Links Within CSS

    On my page, I have a stylesheet that puts a "cell" in the middle of the page
    then creates another frame within that cell. I have my external links below
    the middle frame, so that only my content scrolls. My question is, can I
    put a link outside of the content div class that will load into the content
    frame? My stylesheet code is below if it helps...

    div.textbox
    {
    background-color: #000000;
    font-family: verdana;
    font-size: 12px;
    padding: 5px;
    color: #808080;
    height: 330px;
    width: 450px;
    position: absolute;
    top: 40px;
    left: 175px;
    }


    div.entry
    {
    overflow: auto;
    background-color: #000000;
    color: #808080;
    text-align: left;
    font-size: 12px;
    padding: 5px;
    height: 250px;
    width: 425px;
    border: 1px solid #000000
    }


    div.leftbar
    {
    background-color: #000000;
    font-family: verdana;
    font-size: 12px;
    color: #000000;
    text-align: left;
    height: 330px;
    width: 125px;
    position: absolute;
    top: 40px;
    left: 50px;
    }

    div.rightbar
    {
    background-color: #000000;
    font-family: verdana;
    font-size: 12px;
    color: #000000;
    text-align: left;
    height: 330px;
    width: 125px;
    position: absolute;
    top: 40px;
    left: 625px;
    }

    To clarify, the div.entry part is nestled within the div.textbox part and my
    main content is within the entry, but my external links are all in the
    textbox area so that they don't scroll with the rest of the content. Can I
    make a link in div.textbox (outside of div.entry) that loads into div.entry
    on the same page?

    Drew


  • Brian

    #2
    Re: Using Links Within CSS

    Drew Richardson wrote:[color=blue]
    > On my page, I have a stylesheet that puts a "cell" in the middle of
    > the page then creates another frame within that cell.[/color]

    CSS does no such thing. CSS is a way to suggest a presentation for
    markup. It is not a replacement for that markup.
    [color=blue]
    > I have my external links below the middle frame,[/color]

    < http://dorward.me.uk/www/frames/ >
    [color=blue]
    > so that only my content scrolls.[/color]

    If you are using frames for the fixed part, try the css position:
    fixed property.

    If you want more help, a url is always nice.

    --
    Brian
    follow the directions in my address to email me

    Comment

    • Drew Richardson

      #3
      Re: Using Links Within CSS

      here's a link to my site: http://elmedico27.diaryland.com


      "Drew Richardson" <elmedico27@hot mail.com> wrote in message
      news:vliemjmcct 9oa3@corp.super news.com...[color=blue]
      > On my page, I have a stylesheet that puts a "cell" in the middle of the[/color]
      page[color=blue]
      > then creates another frame within that cell. I have my external links[/color]
      below[color=blue]
      > the middle frame, so that only my content scrolls. My question is, can I
      > put a link outside of the content div class that will load into the[/color]
      content[color=blue]
      > frame? My stylesheet code is below if it helps...
      >
      > div.textbox
      > {
      > background-color: #000000;
      > font-family: verdana;
      > font-size: 12px;
      > padding: 5px;
      > color: #808080;
      > height: 330px;
      > width: 450px;
      > position: absolute;
      > top: 40px;
      > left: 175px;
      > }
      >
      >
      > div.entry
      > {
      > overflow: auto;
      > background-color: #000000;
      > color: #808080;
      > text-align: left;
      > font-size: 12px;
      > padding: 5px;
      > height: 250px;
      > width: 425px;
      > border: 1px solid #000000
      > }
      >
      >
      > div.leftbar
      > {
      > background-color: #000000;
      > font-family: verdana;
      > font-size: 12px;
      > color: #000000;
      > text-align: left;
      > height: 330px;
      > width: 125px;
      > position: absolute;
      > top: 40px;
      > left: 50px;
      > }
      >
      > div.rightbar
      > {
      > background-color: #000000;
      > font-family: verdana;
      > font-size: 12px;
      > color: #000000;
      > text-align: left;
      > height: 330px;
      > width: 125px;
      > position: absolute;
      > top: 40px;
      > left: 625px;
      > }
      >
      > To clarify, the div.entry part is nestled within the div.textbox part and[/color]
      my[color=blue]
      > main content is within the entry, but my external links are all in the
      > textbox area so that they don't scroll with the rest of the content. Can[/color]
      I[color=blue]
      > make a link in div.textbox (outside of div.entry) that loads into[/color]
      div.entry[color=blue]
      > on the same page?
      >
      > Drew
      >
      >[/color]


      Comment

      • Brian

        #4
        Re: Using Links Within CSS

        Please don't top post.



        Drew Richardson wrote:[color=blue]
        > here's a link to my site: http://elmedico27.diaryland.com[/color]

        It doesn't validate. Perhaps not possible using a free web host. But
        you don't even have a doctype. And you have posted in
        ciwa-stylesheets, so presumably you use css for presentation, and yet,
        you have loads of font tags, tables for layout, etc. What are you
        aiming for?

        --
        Brian
        follow the directions in my address to email me

        Comment

        Working...