Whoops!

posted at 00:29:29
By Flipping Heck!
Posted In
Site News



It does take the mickey a bit that I'd just been eulogising about the importance of Website design and having accessible content when I go and break my site for a couple of hours. Oh Dear! blushing

Basically there was a problem with the content frame resizing not only in different browsers but in different resolutions as well. I've hacked the CSS about a bit and made different stylesheets for the most commonly used screen resolutions according to my Google Analytics. Those of you withy screen resolutions less than 1024 or above 1280 - sorry but you're in the minority and I've catered for the masses.

How rude of me!

Still at least it should look okay in I.E and FireFox. If anyone has any comments about what goes on in Saffari, let me know!

For those interested, here's the javascript to load the different stylesheets:





<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
//document.write('Your settings are ' + screen.width + ' x ' + screen.height + ');
if (screen.width == 640) {
document.write('<link rel="stylesheet" type="text/css" href="includes/style_1024.css">');
//alert("Style Sheet for 640 x 480 would have been loaded, but this is just a demo.");
}
if (screen.width == 800) {
document.write('<link rel="stylesheet" type="text/css" href="includes/style_1024.css">');
//alert("Style Sheet for 800 x 600 would have been loaded, but this is just a demo.");
}
if (screen.width == 1024) {
document.write('<link rel="stylesheet" type="text/css" href="includes/style_1024.css">');
//alert("Style Sheet for 1024 x 768 would have been loaded, but this is just a demo.");
}
if (screen.width == 1152) {
document.write('<link rel="stylesheet" type="text/css" href="includes/style_1152.css">');
//alert("Style Sheet for 1024 x 768 would have been loaded, but this is just a demo.");
}
if (screen.width == 1280) {
document.write('<link rel="stylesheet" type="text/css" href="includes/style.css">');
//alert("Style Sheet for 1280 x 960 would have been loaded, but this is just a demo.");
}
if (screen.width == 1600) {
document.write('<link rel="stylesheet" type="text/css" href="includes/style.css">');
//alert("Style Sheet for 1600 x 1200 would have been loaded, but this is just a demo.");
}
//  End -->
</script>
</head>


And here's the hack for the content frame:




/* Below Sets the Width for Internet Explorer and the style for IE/FF. */
.content {
    position:relative; /* Position is declared "relative" to gain control of stacking order (z-index). */
    width: 780px;
    minimum-width: 120px;
    margin:0px 230px 20px 230px;
    border-left:1px solid #0057ae;
    border-right:1px solid #0057ae;
    border-top:1px solid #0057ae;
    border-bottom:1px solid #0057ae;
    padding:10px;
    z-index:3; /* This allows the content to overlap the right menu in narrow windows in good browsers. */
    top: 150px;
    background-color: #e3e7f1;
    }

*/Below sets the width only for FireFox it taks the rest from .content*/  
html>body .content {
    width:740px;
    }

I'm still hoping that one one day that all browsers will work to the same standards....

It'll be a cold day in hell first!


Tags:





Like this article? Add it to:

del.icio.us - Add URL  digg - Add URL  blinklist - Add URL  furl
- Add URL  reddit - Add URL  blogmarks - Add URL  magnolia - Add URL StumbleUpon Toolbar


 



Zen To DoneZen Habits HandbookBannerAdvertise on Flipping Heck
Visit the downloads area Contact Me Buy My EBook Hourly Rate Calculator Code Bank Advertise on this site Productivity Shop

Archive

Categories

 Blogging Business Coding Design Email From My Mobile Google GTD/Productivity Humour Life Hacks Motivation Movie Reviews News Personal Project Management Psychology/Body Language Quizzes/Tests Rants Review Site News Software Tips Technical

Recent Posts

 Threat of redundancy forcing us into unpaid overtime How to run an appraisal Stephen Covey launches a new Community Site Multitasking revisited: How much time are we wasting? How to run Productive Meetings - Guest post at Simpleology.com "Productive" Magazine Launched Shock Horror! Obama may lose Blackberry priviledges!

Recent Comments

 
Adrian says...

The link for BtB4 (Projects) and BtB5 (Review) is the same link. Just thought you should know.Thank....
 
web design says...

Hi, I have just visited your site and the info you have covered has been of great interest to me.....
 
web hosting says...

Great post, I admire the writing style :) A little off topic here but what theme are you using? Look....
 
Kevin says...

I found this post very informative. Here is another helpful body language tip. When you see their ey....
 
Chris says...

Randomly came across this post when searching for a solution to my own procrastination. I'd definit....
 
Pablo says...

Companies are not perfect; job policies in many cases are indeed absurd and unprofitable in the long....
 
Rojae Braga says...

Working beyond your usual working hours does not really mean increasing your productivity. In most t....
 
Quiz Master says...

A site that allows you to quickly create quizzes, tests and questions with full user tracking and le....
 
Ed says...

Hi there your readers may be interested in a new alternative to GTD called Dooster. It's a great on....
 
vijay says...

pig-headed weasel, they may ignore you completely and get you fired for going over their heads but i....

Stats

visitors
since February 2004
966 Reading Now
Search
Click here for help on searching
 

View the Tag Cloud or View the Category Cloud

Subscribe

RSS Feed

Subscribe to the RSS Feed by clicking on the icon below and add the URL to your feed reader

Click here to Subscribe to the RSS Feed

Subscribe via Email

Email


Or subscribe via email



Delivered by FeedBurner


Twitter Updates

    follow me on Twitter

    Featured Posts

     GTD - Back to basics 6 - The round-up Managing Projects in one Place Managing Web Projects - The Whole Shebang Managing your time and procrastination levels with the ktDPlan ktGTD - Projects/Actions with a Moleskine Mindmapping Resources Manage Your Manager - How to cope with Ineffectual leadership Writing good meeting minutes revisited Getting Things Done with Thunderbird Get people re-involved: Change the format Project and Next Action Organisation Time Management: Procrastination vs GTD and Non-Conditional Scheduling Organising your desktop Recover "permanently" deleted items in Outlook Grocery Shopping Hack: Weekly Shopping Lists Using Flags and Rules In Outlook 2003 for GTD Make your blog search engine friendly My Life Organised and Outlook [argh!] How to market your blog and keep your readers GTD with a Pocket PC Improving Outlook with a custom dashboard Organising your Digital Photos Managing Tasks in Outlook Organising and Managing your DVD collection What is GTD?

    Popular Posts

     How to write good meeting minutes Writing good meeting minutes revisited Getting Things Done with Thunderbird Writing Meeting Minutes - Meeting Mate v3 7 Habits: Habit 4 - Think Win/Win Grocery Shopping Hack: Weekly Shopping Lists Improving Outlook with a custom dashboard Organising your desktop GTD - Back to basics 6 - The round-up 7 Habits - Habit 5: Seek first to understand then to be understood

    Blog Roll

     A Bloke Near Where I live Cranky Middle Manager Show Dilbert Focused Performance GTD Wannabe My Boyfriend is a Twat Project Management Institute - eBusiness Specific Interest Group Random Acts Of Reality RoundACow Smidsy The Mad Admin The Register Wide Awake Wesley Wil Wheaton In Exile Suggest a site

    Admin

    To log in, enter your username
    and password below:

    This website and all its contents are © Katy Whitton 2012


    Powered By KWWD