SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a href - possible to a specific box?

    hello everyone, i'm new to css, just began to study by myself.

    after reading a bit about the box model, i started to try it on an html file.

    my question is, is it possible to navigate on the website by a reference to a specific main box, instead of a new html file ? to be more specific, i attached my html file. i'm sure there is a solution for this. thanks for your help.

  2. #2
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    That description needs a little work. But as far as I can figure, are you talking about something like this? { visibility: inherit; } CSS Content Swap

  3. #3
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by EricWatson View Post
    That description needs a little work. But as far as I can figure, are you talking about something like this? { visibility: inherit; } CSS Content Swap
    that's what i meant, thanks
    i attach my code
    Attached Files Attached Files

  4. #4
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Good. I attached mine too.

  5. #5
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,355
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by dannee View Post
    my question is, is it possible to navigate on the website by a reference to a specific main box, instead of a new html file ? to be more specific, i attached my html file. i'm sure there is a solution for this. thanks for your help.
    If I understand what you want correctly then this is something that all beginners seem to ask and is the actually the wrong way to go about it

    Unless you are doing a simple content swap as Eric has shown you you really don't want to create a one page sites where all your content is loaded into that one page.

    Just create a new page and navigate to that new page like everyone else on the web is doing. Long gone are the days of using Frames and following that approach.

    It takes little more time to load the whole page once the css has been cached so there's not really any benefit staying on the same page but there are many drawbacks. For site upkeep you can keep repeating sections in includes (SSI) so that you only need to maintain them once.

    Also take care in setting heights for fluid content . You will rarely want a height on your content container and if you do then you will need to control the overflow so that it doesn't overflow. Of course that will leave you with scrollbars on everything should content be too large or perhaps the user has larger text than you bargained for.

    Web pages should be as fluid and as flexible as possible. Let the page breathe and let it shrink and grow as required.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •