473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

General Question on Debugging CSS

I'm having a problem with the CSS on the website I am developing. A div that
works perfectly fine in IE7, FF, and Opera doesn't appear at all in IE6.

Now, I realize that I could simply post a link to the site and someone here
will likely look at it for about 30 seconds and tell me what's wrong.
However, I'd like to be as self-sufficient as I can be so I would _really_
appreciate some guidance on the best way to find this problem for myself.

Can anyone give me some general guidelines for debugging CSS? How do I
figure out which of umpteen properties is causing a given effect?

When I write CSS, I start out with something I've found online that does
fairly close to what I want to do. Then, I keep tweaking it until it does
exactly what I want to do. As a result, I don't always understand what each
and every property does. I try to change only one property/value at a time
and to always ensure that the impact is what I want before I move on to
another property. Somehow though, this particular problem is eluding me.

I've tried everything that I can think of without success. I've spent
several hours on it and the process itself is becoming very very tedious.
There has to be a better way and I'd like to know what it is. All I know is
that IE6 is taking account of the space needed for the information in my
problem div - if I add more content, it leaves a bigger space for the
information - but it fails to display any of the information at all. I've
tried drawing a border around the div and not even that appears. I think
something else on the page is somehow moving my problem div out of sight. I
just can't figure out how to make it appear.

I've kept my remarks deliberately vague. I doubt that anyone would want to
read a detailed account of all that I've done to solve this problem myself;
I've already spent enough time on this that I don't want to compound it with
another hour or more or writing a detailed play-by-play. Suffice it to say
that I am looking for a general technique for finding the problem, not a
specific fix for this one problem.

Can anyone get me started? If you can point me to a website that details
development/debugging procedures for CSS, that would be fine: I'm not asking
anyone to spend hours writing something original that just regurgitates an
existing site.

Your assistance would be greatly appreciated!

--
Rhino
Jun 27 '08 #1
2 1473
On Thu, 29 May 2008 19:42:30 +0200, rhino
<No***********************@anonymous.comwrote:
I'm having a problem with the CSS on the website I am developing. A div
that
works perfectly fine in IE7, FF, and Opera doesn't appear at all in IE6.

Now, I realize that I could simply post a link to the site and someone
here
will likely look at it for about 30 seconds and tell me what's wrong.
However, I'd like to be as self-sufficient as I can be so I would
_really_
appreciate some guidance on the best way to find this problem for myself.

Can anyone give me some general guidelines for debugging CSS? How do I
figure out which of umpteen properties is causing a given effect?
http://www.positioniseverything.net/...s/mys-bug.html
Especially the 'minimal test case'.
When I write CSS, I start out with something I've found online that does
fairly close to what I want to do. Then, I keep tweaking it until it does
exactly what I want to do. As a result, I don't always understand what
each
and every property does. I try to change only one property/value at a
time
and to always ensure that the impact is what I want before I move on to
another property. Somehow though, this particular problem is eluding me.
Well, understanding the properties is a plus. They are not hard to find on
the net.

Can anyone get me started? If you can point me to a website that details
development/debugging procedures for CSS, that would be fine: I'm not
asking
anyone to spend hours writing something original that just regurgitates
an
existing site.
For me, using firebug in FF has really sped up CSS creation, however, for
a MSIE 6 only problem that might not help all that much. Also look at the
known browser bugs at http://www.positioniseverything.net/

--
Rik Wasmus
....spamrun finished
Jun 27 '08 #2
rhino wrote:
I'm having a problem with the CSS on the website I am developing. A div that
works perfectly fine in IE7, FF, and Opera doesn't appear at all in IE6.

I'd like to be as self-sufficient as I can be so I would _really_
appreciate some guidance on the best way to find this problem for myself.
If it's something specific to IE6, one of the best sources is the PIE
list of IE bugs:
http://www.positioniseverything.net/explorer.html

Search through the newsgroup archives, too. It's unlikely you're finding
a bug that hasn't come up at least 100 times before. Use various
keywords in your search because a problem may be described differently
by different people. alt.html is another group that should have some
answers.
Can anyone give me some general guidelines for debugging CSS? How do I
figure out which of umpteen properties is causing a given effect?
Comment out chunks of CSS then put them back in one at a time. That
doesn't necessarily work for IE6 bugs, though. For that,
position:relative and a couple other properties will become your best
friends, especially when floats are involved. Just avoid what's known as
the "Holly hack", i.e. height:1%. It does resolve some IE bugs, but
causes other problems. There are other, better work-arounds.
When I write CSS, I start out with something I've found online that does
fairly close to what I want to do. Then, I keep tweaking it until it does
exactly what I want to do. As a result, I don't always understand what each
and every property does. I try to change only one property/value at a time
and to always ensure that the impact is what I want before I move on to
another property.
That's generally a pretty good way to learn, assuming you are starting
out with something well thought out, but keep a reference handy as you
go so you can better understand what you're doing. References include
the W3C specs and sites like PIE and quirksmode.org
Somehow though, this particular problem is eluding me.
It's IE6. It's in a world of its own.

--
Berg
now killing all posts from google groups
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Erik | last post by:
I have written an add in to the IDE that fires an event to check for processes that have started up that are in a user specified list. If one of them is found it will attach the debugger to the...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
0
by: matsla | last post by:
I have followed all guide lines to set up remote debugging but is it possible to do cross-domain remote debugging? I use same account/password on both computers (XP => 2003), added users to debug...
23
by: keyser_Soze | last post by:
I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on this machine and I am trying to debug some existing code which has both ASP and ASP.NET components. When I try and launch...
10
by: Doug Robertson | last post by:
First off, I'm a hardware/OS guy. I just write code on the side and I'm completely self taught - so bear in mind my total lack of expertise. I have a program originally written in VB2003 using...
2
by: Craig Storey | last post by:
-- Also posted to: alt.comp.lang.php, but I really meant to post here -- Can someone please help me find the name/website of a php debugging application that was announced here a few months back....
0
NeoPa
by: NeoPa | last post by:
Table of Contents - Previous Chapter - ----------------------------------------------------------------------------------------------- 3) General Tips. The first and most important tip is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.