[css-d] Centering contained div with unknown width.

2013-03-29 Thread J.C. Berry
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?

Re: [css-d] Centering contained div with unknown width.

2013-03-29 Thread Philip TAYLOR
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?

Re: [css-d] Centering contained div with unknown width.

2013-03-29 Thread Jay Tanna
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

[css-d] trying to remove outline off of image map areas

2013-03-29 Thread Angela French
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

Re: [css-d] Centering contained div with unknown width.

2013-03-29 Thread Philippe Wittenbergh
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

Re: [css-d] trying to remove outline off of image map areas

2013-03-29 Thread Barney Carroll
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]

Re: [css-d] trying to remove outline off of image map areas

2013-03-29 Thread Philippe Wittenbergh
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