Solved

CSS margin / padding problem with float left HTML elements

Posted on 2008-10-07
3
330 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

Independent Software Vendors: 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
CSS overflow problem 21 43
Error Handler 8 45
formatting issues with wordpress site...verbondtraining.com 16 23
CSS background-color 5 21
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

710 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