Solved

Screen Resolution Compatiblity Issue

Posted on 2006-11-11
7
126 Views
Last Modified: 2010-04-09
My site (www.pindaal.com) is depended on style sheet template/theme and it is viewed best in 1024x768  resolution. When it is opened in 800x600 settings right side bar is not viewed. Kindly opne it in both resolution.

Now I want to ask that in which place I hav to edit, i.e. do I edit style sheet file or what? I want that my site is best viewed in both resolution or atleast in 800x600.

0
Comment
Question by:A1opus
  • 2
  • 2
7 Comments
 
LVL 19

Accepted Solution

by:
VoteyDisciple earned 200 total points
ID: 17922725
This is ultimately controlled by the stylesheet, yes.  Glancing at it briefly I see quite a few fixed widths given to elements (in px, even -- most of those should at least be given in em).  To fit in an 800x600 window the widths of elements across the screen will naturally have to sum to less than 800.

Alternatively you could remove the absolute widths and either use percentages (so a certain element is a percentage of the total available width) or give widths to only some elements so that others can be sized by the browser.
0
 
LVL 2

Author Comment

by:A1opus
ID: 17923099
I am pasting the following some tags of my sheet, kindly tell me that which shud be changed:


#environment
            {
            margin: 0 auto;
            min-width: 800px;
            width: 100%;
            }

#masthead
            { /* masthead position */
            border-top: 30px solid #ccc;
            margin: 0;
            padding: 25px 0 5px 0;
            width: 100%;
            }

#header
            {
            border-bottom: 1px solid #ccc;
            padding: 0 0 10px 0;
            }

#middlewrap
            {
            float: left;
            margin: 0 401px 0 0;
            min-width: 468px;
            }

#blogposts
            {/* positioning the blogposts (left) column */
            float: left;
            padding: 0 0 25px 0;
width: 100%;
            }

#sidebars
            {
            float:right;
            margin:0 0 0 -401px;
            width: 400px;
            }

#sidebar1
            {/* left sidebar position */
            float: left;
            padding: 15px 20px 15px 30px;
            width: 160px;
            }

#sidebar2
            {/* right sidebar position */
            float: right;
            padding: 15px 0;
            width: 180px;
            }


#footer
            { /* footer information */
            background-color: #cc9;
            clear: both;
            width: 100%;
            }

#masthead, #sidebars, #footer
            { /* clear every floats */
            overflow:hidden;
            _height:1%;                  /* MSIE specific */
             _overflow:none;            /* MSIE specific */
            }
0
 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17923128
Well that's really up to you.  I'd suggest playing with any of the values that look like...

width: 400px;


... until you've got something you like.

If you're using Firefox you may find it helpful to have the WebDev toolbar installed, as it has a feature to easily edit stylesheets while looking at the page.


I can't tell you what design you'll think looks good.  (-:
0
 
LVL 2

Author Comment

by:A1opus
ID: 17923163
i want that the width of my site should be contained in 800px, so kindly tell which tag shud be edited. If you see my website in 800x600 resolution, u will notice that right sidebar is not contained in the screen.
0
 
LVL 11

Assisted Solution

by:ethoths
ethoths earned 200 total points
ID: 17956209
If you're using ccs layout then you'll need a div immediately inside the body tag that contains all of your content...

<body>
  <div id="layout">
    Content here
  </div>
</body>


Then create a new style rule..

#layout
{
  width:771px;
}


If your're using tables to layouyt the site then replace the <div mentioned above with>

<body>
  <table cellpadding="0" cellspacing="0" border="0" width="771" height="100%">
    <tr>
        <td valign="top">
            Content goes here...
        </td>
    </tr>
  </table>
<body>
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now