Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 02:00:37 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Designs for any browser.  (Read 315 times)
blushifted
Pong! (the videogame) Master
*****
Offline Offline

Posts: 28


« on: May 11, 2008, 12:10:27 PM »

I made this website in IE and when I view it in opera and firefox the design falls apart.  Also when you change the size of the content using (ctrl +) it falls apart as well.  I tried to make the design flexible after reading some advice in a book but I guess I missed it.  My site is www.blushifted.com if you would like to look at it.  Does anybody have any thoughts on how this can be done better so that the user has options without killing the layout?
Logged
Troy Laclaire
Support
Intergalactic Superstar
*****
Offline Offline

Posts: 143


Darkwolf


« Reply #1 on: May 11, 2008, 12:38:35 PM »

The falling apart due to IE not following the standards that most other browsers use. (you can find many forums/sites via google devoted to this)

I have found its easier, overall, to design a site to look good in firefox, then place "fixes" so it appears ok in IE ,   then to do the design in IE and attempt to fix for other browsers.
Logged

blushifted
Pong! (the videogame) Master
*****
Offline Offline

Posts: 28


« Reply #2 on: May 11, 2008, 12:53:44 PM »

Ok, that makes a lot of sense.  I saw a little bit of that is a couple of css books talking about how they would implement the code to work around IE.  I will try that and then try to google the workarounds.  Thanks so much for your advice.
Logged
blushifted
Pong! (the videogame) Master
*****
Offline Offline

Posts: 28


« Reply #3 on: May 11, 2008, 04:30:29 PM »

Ok so I tried adjustint everything to display correctly in Firefox.  Then I researched online and found the double margin bug in ie and tried the solution of using the display: inline property to no avail.  I may be implementing it wrong.  Do you have any other thoughts on how it could be done.  Here is the css for the navigation bar and the conten that is below it.

I have also outlined them with a border if it helps in anyway. 

#navigation (bordered in blue)
{
 position: relative;
 top: -42%;
 margin-left: auto;
 margin-right: auto;
 float: left;
 list-style: none;
 display: inline;
}

#content (bordered in red)
{
 position: relative;
 left: 33.3%;
 top: -103.8%;
 width:66.6%;
 height: 100%;
 border-left: thin solid #CCCCCC;
}

#position (bordered in pink)
{
 background-color: #FFFFFF;
 margin-left: auto;
 margin-right: auto;
 margin-top: 3px;
 width: 750px;
 height: 600px;
}

thank you again for all of your time.  It is much appreicated.
Logged
Troy Laclaire
Support
Intergalactic Superstar
*****
Offline Offline

Posts: 143


Darkwolf


« Reply #4 on: May 11, 2008, 08:16:32 PM »

You may want to try removing the spaces you have between the property values and the units.

For example change:

height: 100%;

to

height:100%;

Having the spaces may cause issues in IE that doesnt show in Firefox.

You may want to review http://www.w3schools.com/CSS/css_howto.asp  which touches on this and other features of stylesheets
http://www.w3schools.com/CSS/css_howto.asp
« Last Edit: May 11, 2008, 08:18:09 PM by Troy Laclaire » Logged

blushifted
Pong! (the videogame) Master
*****
Offline Offline

Posts: 28


« Reply #5 on: May 11, 2008, 09:57:53 PM »

i tried removing the spaces but no go.  I will try again tomorrow to find out how to get to work in all browsers.  Thanks again for you help.
Logged
blushifted
Pong! (the videogame) Master
*****
Offline Offline

Posts: 28


« Reply #6 on: May 13, 2008, 10:19:09 PM »

Okay, I was able to figure this out someone. The reason for the weird spacing was a list-style where you could only see one bullet and it was because I was telling the parent of the div-tag not to have any list style.  So by adding the following I was able to fix the worst of it.

#hnav
{
  list-style: none;
{

Hope that helps people in the future to be less nooby.
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Online Online

Posts: 6174



WWW
« Reply #7 on: May 14, 2008, 04:59:16 AM »

Thanks for sharing!  Thumbs Up
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM