473,769 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I debug this strange behaviour.

I am trying to create a CSS that deals with some automatically
generated content (using tapestry). It is effectly a list of items
that I have read from a database.

Each row of the table is a <div> whose only content is a set of divs
with the fields of the data that want to output.

The whole set of rows of this table are surrounded in another div.

My problem is that the First Row of the table is about 3 lines (in
relation to the size fo the text content of the inner divs) high,
compared to all the other rows

This is true with Konqueror and Mozilla Firefox browsers.

The row div has two classes specified for it . Each of the inner divs
have a single class for example like the following:-

<div class="personli st">
<div class="person clearfix">
<div class="surname" >Surname</div>

....

</div>
</div>


Firstly, the clearfix class is supposed to solve the problem of the
floating boxes not extending the surrounding div (as given at
http://www.positioniseverything.net/easyclearing.html) namely

..clearfix:afte r {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */

The css for person is very simple

..person {
border:1px solid black;
padding:0 2px 0 2px;
}

and the css for each of the floats is very similar

..surname {
width: 20%;
float:left;
/* only for debugging */
border:1px solid blue;
}
Just to see what what happen, I have removed the visibility hidden
from the clearfix css. This produces a single . outside the content
of the div, but has no effect on th div size (the following divs move
down a bit.

In this case, it is clear all the floating divs only take up one line
of the surrounding div - so QUESTIONS

- Why am I a larger height for the first "person" div inside
"personlist ", whilst all the others behave fine?

- I have put borders round each div to see where they are but can't
see why it doesn't collapse - how else could I debug this?
Sep 14 '05 #1
2 1408
Alan Chandler wrote:
I am trying to create a CSS that deals with some automatically
generated content (using tapestry). It is effectly a list of items
that I have read from a database.


1. If it's tabular data, use table markup - that's what it's for!
2. Post a URL.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Sep 14 '05 #2
On Wed, 14 Sep 2005 12:43:24 -0500, kchayka <us****@c-net.us> wrote:
Alan Chandler wrote:
I am trying to create a CSS that deals with some automatically
generated content (using tapestry). It is effectly a list of items
that I have read from a database.
1. If it's tabular data, use table markup - that's what it's for!


That cuts off some flexibility. Although in this instance the data is
being output as a table, the way tapestry works is that it breaks down
things into small components that output small bits of the data. In
other circumstances the same data is being placed into a form. By
using div and css, I can change the layout by surrounding the lower
level items by a div with a different class.

(and indeed I can change the layouts via the css in general rather
than embedding the formatting in the code producing parts)
2. Post a URL.

Not easily possible at the moment, this is still only on a personal
machine behind firewalls as it is being developed. If I can't get an
answer without posting a URL I might try and put it up later, but that
involves quite a lot of setup - might take me a while.
Sep 15 '05 #3

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

Similar topics

4
3846
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I compile with g++-3.2 it compiles and works fine, on another computer, whether I compile with g++-3.0 or g++-2.95 (unfortunately 3.2 is not available) it crashes with a segmentation violation on runtime.
2
1975
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from std::exception. We have a base class which all processes derive from which is always instantiated in main surrounded by a try/catch(std::exception) which catches all exceptions that have not be handled at a higher level. The catch block cleans up and...
3
4875
by: Sebastian C. | last post by:
Hello everybody Since I upgraded my Office XP Professional to SP3 I got strange behaviour. Pieces of code which works for 3 years now are suddenly stop to work properly. I have Office XP Developer (SP3 for Office, SP1 for developer, JET40SP8) on Windows XP Home Edition (SP1). The same behaviour occurs on Windows 98 too.
1
3767
by: Sam Kong | last post by:
Hello! Recently I had a strange problem with Visual C# 2005 beta 1. When I ran(F5 key) a program, <#if DEBUG> statement was not working. It ran as RELEASE mode. So I had to manually define DEBUG to make #if DEBUG work. When I first started the project, this problem didn't exist. The problem started to exist in the middle of doing the project. Today, I decided to figure out what went wrong.
0
868
by: Lau Lei Cheong | last post by:
Hello, I'm writing a ASP.NET project and there is strange behaviour that prevent me from start debugging on a remote web server. The remote server name is "webtest". It's also the server where my source code is saved at. When I trying to debug the program, it said "Error: While trying to run project.unable to start debugging on the web server.There is no managed code
0
1800
by: BA | last post by:
I posted on this once before and could not get a solution, I am hoping someone can help. I have a very strange code debug behavior that I cannot make heads or tails of: I have c# code being executed in BizTalk assemblies which is repeating debug statements. I tried debug.flush() and debug.close() which did not solve the problem. In my BizTalk process I call a static method:
7
1720
by: Khookie | last post by:
Hi everyone The program I'm writing is getting bigger, hence not as easy to debug. So I have this on one of my core header files, which I include in just about every .c file, and I use it everywhere to print out diagnostic msgs. #ifdef NDEBUG #define debug(x) ((void)0)
8
5317
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples. (Sorry, long email) The first two examples are behaving normal, the thirth is strange....... I wrote the following flabbergasting code: #-------------------------------------------------------------
0
1739
by: =?Utf-8?B?SmVmLnB0Yw==?= | last post by:
Hi, I am currently facing exactly the same issue with Visual Studio 2005. Did you find a way to solve this problem ? "AntonioSACE" wrote:
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9997
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.