Solved

CSS margin / padding problem with float left HTML elements

Posted on 2008-10-07
3
327 Views
Last Modified: 2012-06-21
Go to:
wolfcast dot com/contact.php

The padding of the "Contact form" fieldset is not correctly set. It should have 0.5em for top, right, bottom, left... But currently it's not working (at least the padding-right). I'm pretty sure it's because of my floated elements in that fieldset.

How can I have a 0.5em padding for this fieldset? I don't want any CSS hacks. It must be HTML 4.01 strict compilant.

Thanks!
0
Comment
Question by:mychel_normandeau
3 Comments
 
LVL 5

Expert Comment

by:Devario Johnson
ID: 22662990
it looks good to me maite...what seems to be the padding issue?  did you get it resolved?
0
 

Author Comment

by:mychel_normandeau
ID: 22663076
No, the padding-right is not correct... It should be 0.5em too,..
0
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 500 total points
ID: 22665079
"It must be HTML 4.01 strict compilant."

Use pixels rather than EM.  You will find that some browsers seem not to interpret EM correctly.  Pixels is the way to get all browsers to interpret the CSS correctly -- at least in my experience with modern ones.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help fixing "Flash of Unstyled Content" problem with website 4 44
links not working 2 25
Level out logo and increase size? 16 23
Regular Expression needed 4 13
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question