Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on CSS question. in the Shared & Semi-Dedicated forum
How can i make the main area of the page (the bar where it says "news" now) change width according to screen width/resolution? now if ...

  1. #1
    Smo
    Smo is offline
    JPC Addict
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    218

    CSS question.

    How can i make the main area of the page (the bar where it says "news" now) change width according to screen width/resolution?

    now if I look at the page at res. 800x600 the middle area will overlap the right bar. or if I make the res higher then 1024x768 the main area will look too small.

    Page> http://www.maqn.com/temp/home.html

    CSS> http://www.maqn.com/temp/mainCss.css

  2. #2
    JPC Senior Member stevenha's Avatar
    Join Date
    Jul 2003
    Location
    Edmonton
    Posts
    71
    I would try, making your "News" rectangle thing, into a simple table with 1 row, both having width 100%.

  3. #3
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    There are a number of ways to do it in CSS without resorting to using tables. The easiest would probably be to set the news bar's margin-left to be as wide (or wider) as the blue bar on the left side and its margin-right to be as wide as (or wider than) the blue bar on the right. The don't set a width for that element. I think that will do the trick.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    I agree with Jason. Besides, all those things that start with '#' are Level 2 which, as you found out, aren't supported by most browsers.

    Draw your tables in your HTML, PHP or whatever files and not CSS.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

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
  •