Solved

CSS margin / padding problem with float left HTML elements

Posted on 2008-10-07
3
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

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.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

623 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