Solved

CSS margin / padding problem with float left HTML elements

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

746 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now