Question

CSS positioning problem and browser compatibility issue (files provided)

Asked by: Roba122

I have jut begun to build a new sit e using CSS this is the first time doing so for me. Previously I did everything in tables and I have to say this is  a bugger to figure out for the first time.     So I have a external style sheet and my main page (right now index2.html)  

firstly it is a 3 column layout. Dreaweaver is butchering the layout any time I put any content inside the main sections and if I put anything in the "menu div" text appears OUTSIDE of the conatiner its in when the page is rendered. I dont know how that even works.  So the layout is as follows:

A main container "wrapper". This is used to center everything in the page.  Inside wrapper is "pghead"  (this contains a header image)  then below is "nav" which will hold page specific navigation. Then below those are the 3 columns for the layout.  First "menu" which will hold global navigation for the site. then "content" which will hold the main content and finally "rtbox" which will hold random news etc.

then a copyright notice "copynote" and a footer "footer"  all at the bottom. So the first issue is that the page looks nothing like the rendered page in dream weaver, I can live with that but its making it damn hard to lay this thing out as it keeps moving and never looks the same when rendered.  

Next is cross browser compatibiltiy I've got it just about looking right WITHOUT any content inside on explorer 6 but when I render it in Firefox its all off plus one of the photos doesnt load



You can see the page here

www.floridarangers.com/testing/index2.html

the css is available as a text file here
(the real file has the appropriate .css extension)

www.floridarangers.com/testing/floridarangers.txt

To answer this question:
1.  I validated the css and the html, but stuff is still wrong, so tell me If I missed something
2.  A short discussion on positioning behavior of Divs in Dreamweaver, any way to approach my layout differently but get the same result?(see the css)
3.  Firefox issue whats causing it what do I do to fix it? or is it explorer?

Any other information would be appreciated.

Thank you

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-05-22 at 09:59:09ID21859430
Tags

dreamweaver

,

compatibility

Topic

Adobe Dreamweaver

Participating Experts
3
Points
500
Comments
15

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. CSS Div rendered differently in IE and FireFox
    I have a web site that uses CSS and Divs to form a Navigation bar on the left (there is a masthead on top). Firefoxs renders the pages correctly (the way I want them) always. IE renders them correctly most of the time. IE overlaps the right division onto the NavBar when a ta...
  2. CSS positioning problem in Firefox
    The bottom menu bar at www.allsite.co.uk displays fine in IE6 (at the bottom) but in Firefox it displays near the top. I think this is to do with Firefox positioning all divs at the top, within the div called "main". I tried using positioning relative, absolute, etc...
  3. CSS and Dreamweaver
    I'm a beginner Dreamweaver. I'm trying to look at existing CSS based sites (like the templates within Dreamweaver) to better understand how each CSS div tag was created and applied. When I create a web page within Dreamweaver using the CSS style/layer tools inside of Dreamw...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jason1178Posted on 2006-05-22 at 11:32:22ID: 16736706

Hi Roba122,

Making the switch from tables to CSS is tough.  I sympathize.  There are several things going on here, so I'll try to address them in order:

>> 1.  I validated the css and the html, but stuff is still wrong, so tell me If I missed something

When I validate the CSS and HTML, it is full of errors.  When you declare a DOCTYPE and don't conform to the standards of the declaration, the browsers go into quirks mode and start rendering things in their own special way.  In your particular case, IE is being more forgiving of your errors than FireFox is, thus your design looks kind of okay in IE and doesn't render hardly at all in FF.

What you need to do first is resolve this situation.  Either get away from using XHTML 1.0 Transitional and go back to HTML 4.0 Transitional or Strict or run this page through the Validators at http://www.w3.org/.  Do the HTML first and fix EVERY error that is reported.  Keep running the page through the Validator until it comes up with no errors.  Then repeat the process with the CSS validator until there are no errors in the CSS file.

At this point, your page may render the same in both browsers and most of your problems are solved.  We can then start to address positioning and stupid CSS tricks (TM).

>> 2.  A short discussion on positioning behavior of Divs in Dreamweaver, any way to approach my layout differently but get the same result?(see the css)

Well, yes.  Lots of ways.  First of all, you almost never want to use absolute positioning.  For the rest of it, I could type about CSS all day and all night and not come close to teaching you what you need to know.  I recommend you do some more reading about CSS layout with the following tutorials:

http://www.w3.org/2002/03/csslayout-howto
http://glish.com/css/7.asp
http://joshuaink.com/blog/196/a-simple-guide-to-3-column-layouts
http://www.webreference.com/authoring/style/sheets/layout/advanced/

You can also explore how other people approach it:

http://www.oswd.org/

>> 3.  Firefox issue whats causing it what do I do to fix it? or is it explorer?

See #1.  It's the quirks mode for both browsers and once you get into quirks mode, all bets are off.

 

by: Roba122Posted on 2006-05-22 at 12:04:45ID: 16736956

Well this looks good I read most of that(in q2). What I was looking for was the behavior while Im working in Dream weaver.  

Also I validated the page but the errors werent clear to me,( how to fix them)  any help with that?

 

by: jason1178Posted on 2006-05-22 at 12:27:00ID: 16737129

>> What I was looking for was the behavior while Im working in Dream weaver

Please re-clarify.

>> Also I validated the page but the errors werent clear to me,( how to fix them)  any help with that?

 Below are the results of checking this document for XML well-formedness and validity.

   1. Error Line 12 column 10: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

      <div id = wrapper>

   2. Error Line 13 column 9: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

      <div id =pghead></div>

   3. Error Line 14 column 10: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

      <div id = nav>

   4. Error Line 26 column 11: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

       <div id = menu> </div>

   5. Error Line 27 column 10: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

      <div id = content>

   6. Error Line 30 column 11: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

       <div id = rtbox>

   7. Error Line 34 column 10: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

      <div id = footer>   <a href="#">About Us</a> | <a href="#">Site


   8. Error Line 37 column 10: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

      <div id = copynote>


Okay, most of this means your <div> tags with ID are not written properly.  I think all you need to do is enclose them in quotes:

<div id = "copynote">

Once that is done, you can run the CSS validator and continue from there.



 

by: Roba122Posted on 2006-05-22 at 13:02:48ID: 16737417

With regards to 1

I mean I am having a hard time with the behavior Im getting when I put text in the first div named "menu"

on the errors:

I validated both the css and the html and they came out ok now. The css had warnings but were all related to such and such having the the same background color etc. Fixed all the HTML

 

by: jason1178Posted on 2006-05-22 at 13:39:57ID: 16737699

Okay, please repost the HTML and CSS file and let me look at it again.

 

by: Roba122Posted on 2006-05-23 at 07:00:11ID: 16742473

Ok I made some changes both the css and html pass validation.  Stupid thing still looks like it was put in a blender with fire fox and looks fine on explorer.  Any help with that. I also added an image place holder some text in the different sections and also plaid with the css to get the layou working a little bit better. From my understanding you are not supposed to use absolute postioning if possible but it worked for me when nothing else seemed to.


Thanks

copy of the css is still available at the same location in .txt format

 

by: radnorPosted on 2006-05-23 at 08:14:34ID: 16743205

In your style sheet, did you want BOTH a CLASS and an ID called footer???   .02

#footer {
      width: 692px;
      height: auto;
      font-size: 90%;
      background-color: #CCCCCC;
      padding: 5px;
      position: relative;
      
      }

.footer {
      clear: both;
      border: 1px solid #cccccc;
      font-size: 75%;
      color: #cccccc;
      padding: 10px 10px 10px 10px;
}

 

by: Roba122Posted on 2006-05-23 at 08:51:22ID: 16743561

Well no,  is there a conflict with that? I pasted the code from a template to get me going on the mundane stuff. and to have something to work back from.  If I dont refer to it does it matter?

 

by: jason1178Posted on 2006-05-23 at 09:09:42ID: 16743755

It might, but I doubt it.  Change it to be safe.

I have to do some (paying) work today so I will be getting back to you on the CSS in a few hours unless Radnor beats me to it.

 

by: jason1178Posted on 2006-05-23 at 12:02:20ID: 16745355

Well now the CSS file has links to local images (file:D\\) so there is no way for me to fully preview it.

 

by: pcthelpPosted on 2006-05-24 at 04:16:13ID: 16750063

Hi,

Not so much a solution but you may find it useful, but im also trying to change my web development technique like yourself to purely CSS, I recently bought the following book :

http://www.digital-web.com/articles/css_mastery/

got from amazon http://www.amazon.com/gp/product/1590596145/002-2615236-0834407?v=glance&n=283155

It's been a good read and I've picked up alot of useful info and tips - worth a look and a good reference guide for future projects.

 

by: Roba122Posted on 2006-05-24 at 08:27:17ID: 16752219

http://www.floridarangers.com/testing/index3.html

I made some changes and did some other work. unfortunately web had been down all morning at work so I couldnt post that I did this.  css is at same location floridarangers3.css


I've got it looking pretty much spot on in ie and reaaaaaly close in firefox.....having problems with the stupid footers.. any help with that?

 

by: jason1178Posted on 2006-05-24 at 09:04:07ID: 16752660

Remove the copynote div...nesting the footer and copynote divs is screwing up the design and you don't need to do it this way.

 

by: Roba122Posted on 2006-05-24 at 09:36:40ID: 16753009

I did it. and it works. I just took and nested the two divs inside another one  now named footer. I just wanted seperate formatting and such and wanted to run a off color line across the top so I put two divs in.  So it works!  Thanks alot

 

by: jason1178Posted on 2006-05-24 at 09:38:51ID: 16753041

Great.  Good luck with learning CSS.  Over time, you will come to prefer it to tables for complex layouts.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...