Hello all,
I have the below link to a problem. I have an absolute page and container
width, but I have a div inside the container that I need centered no matter
how wide that contained div is. How can I make the contained div only as
wide as its content and center it?
J.C. Berry wrote:
Hello all,
I have the below link to a problem. I have an absolute page and container
width, but I have a div inside the container that I need centered no matter
how wide that contained div is. How can I make the contained div only as
wide as its content and center it?
You need to have margin-left and margin-right to be auto something like this:
#container {
width: 960px;
background-color: silver;
}
#contained {
width: 500px;
margin: 0 auto;
background-color: gray;
}
Your HTML might look like this:
div id=container
Hello,
Shouldn't the following work to remove the focus outline from an image map's
areas? It does not work in IE. It works in other browsers.
map area:focus, map area:active
{outline:none;
border:0;
}
Thank you,
Angela French
Internet Specialist
State Board for Community and
Le 30 mars 2013 à 03:28, J.C. Berry jcharlesbe...@gmail.com a écrit :
I have the below link to a problem. I have an absolute page and container
width, but I have a div inside the container that I need centered no matter
how wide that contained div is. How can I make the contained div only as
Sadly, IE will need Javascript to achieve this, in the form of listening
for the `focus` event for each such element and triggering `blur` on it.
__
css-discuss [css-d@lists.css-discuss.org]
Le 30 mars 2013 à 09:48, Barney Carroll barney.carr...@gmail.com a écrit :
Sadly, IE will need Javascript to achieve this, in the form of listening
for the `focus` event for each such element and triggering `blur` on it.
But that is an accessibility nightmare.
Just out of curiosity, is that