|
Hi!
I'm having a problem with the padding in my form on my website. If I've set a height/width to a form element and then adds a padding to it. In all browsers I've tried, except Firefox, the padding is added to the height/width.
If I have a input with...
Started by guzh on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Have you tried putting display:block on the form? It sounds like FF might possibly be treating padding problem as well as a bunch of other problems you may encounter..
|
|
In this case, internet explorer doesn't seem to give the right amount of margin. It looks like it measures the margin from the top of the box and ignores the padding. Why is this? Is there a good workaround? Here's an example:
<!DOCTYPE html PUBLIC...
Started by Kyle Ryan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You may need to explicitly put.
With the differences between IE and FF as it relates to margins and padding.
|
|
Hi everyone, I need to put 2 divs side by side. But what's more important, I want this to display correctly in IE6/7. I have managed to succeed this with Firefox though. My code:
#container{ padding:10px; } #left{ float:left; width:500px; } #right{ width...
Started by turezky on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
#box label, #box input {margin:0;padding:0;}
Some content here 2
What's that content? Your example.
Make sure that you have reset the default padding and margin for the items before expressing yours.
|
Ask your Facebook Friends
|
In IE6, display:block with a colored background color extends that color to the far right side of the page. Changing to display:inline fixes that problem, but the color now ends immediately after my last character, despite the fact that I have specified...
Started by Dave on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Padding should work fine on an inline element, so as a block element with regards to....
I would hope display:block and display:inline work to the far right of the page when it's a block element .
pad a hard space ( ) after the text.
|
|
IE7 is driving me crazy. I know is a small thing, but I don't know what else to google, and I know I am missing something very small.
<div id="spotlightHolder"> <div id="spotlight"> <div id="spotlightMessage"> <h1 id="spotlightTitle...
Started by Geo on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Or in this case change it to have
padding-left:315px; _padding-left:122px.
Effect IE pre version 8.
|
|
(Note, this is not the double-margin bug. I'm calling this the double-vertical-padding bug for now unless someone else has a more clever/documented name for this?)
Just when I thought I'd seen all the quirky IE CSS bugs, I've produced a simple test case...
Started by Funka on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
( Explicitly setting the height on your clear div set hasLayout to true in the eyes of IE )
On a side note, in cases where specifying height won't work for some reason, I've often found... .
Given the solution you found, it seems to be the hasLayout IE quirk .
|
|
Should the following be shunned, or praised for its simplicity? For the record, I use it in every site I build, but I've noticed it's not present in many main-stream CSS-Reset frameworks...is there a reason they don't use it too?
* { margin:0; padding...
Started by Jonathan Sampson on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Tend to be more accurate to CSS spec a margin/padding that is different from....
If your intent is to set the padding and margin of every single element, then there should whole page, and use those to work with IE's bugs (as FF et.
|
Strange gap between |
|
I would like to have an ordered list that has the text on the left and an image for each li within it on the right of the li. So I floated the image to the right and it puts the image correctly on the right and text on the left, but the image is 14 pixels...
Started by MECU on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
#top25list li{ margin:0; padding:0 3px 10px 3px; /* add padding-right to make room for the image */ background-color:#FFF; border-top:1px solid #990100; cursor:n-resize; padding....
The HTML you could try positioning instead of floats.
|
|
I feel like this is a very basic CSS question:
There seems to be a hidden "margin-top" in my CSS, which shows up in FF and Chrome, but not IE. This is the page: adambailin.com/projects
I want the project title to line up with the image. Each project is...
Started by Adam Bailin on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Use....
Just use this in css
h4 {margin-top:0;}
Best plan...
#project_desc h4 { margin-top:0 }
#project_desc h4 { margin-top:0; }
might help, try installing firebug in firefox, its a web-devs best friend .
You're using an H4 tag which has it's own margin .
|