HighDots Forums  

Align: center for DIV and IMG not resolved !

alt.html.tags alt.html.tags


Discuss Align: center for DIV and IMG not resolved ! in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Manu
 
Posts: n/a

Default Align: center for DIV and IMG not resolved ! - 05-05-2005 , 10:00 AM






Hello the world,

Tested I.E. 6 and Netscape 7.02.... source:

Code XHTML 1.1 :
<div class="my_class_div">
<img class="my_class_img"
src="url"
alt="title" />
</div>

CSS 'code':
..my_class_div{
text-align: center;
vertical-align: middle;
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
}

..my_class_img{
text-align: center;
vertical-align: middle;
border: none;
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
/*margin: 0px 0px 0px 0px;*/
width: 468px;
height: 60px;
}

Bye and thanks for help.

Manu.

--


EMA



Reply With Quote
  #2  
Old   
Manu
 
Posts: n/a

Default Re: Align: center for DIV and IMG RESOLVED !! - 05-05-2005 , 11:23 AM







"Manu" <emmanuel (AT) mazzola (DOT) org> a écrit dans le message de news:
427a352e$0$17281$626a14ce (AT) news (DOT) free.fr...
Quote:
Hello the world,

Tested I.E. 6 and Netscape 7.02.... source:

Code XHTML 1.1 :
div class="my_class_div"
img class="my_class_img"
src="url"
alt="title" /
/div

CSS 'code':
my_class_div{
text-align: center;
vertical-align: middle;
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
}

my_class_img{
text-align: center;
vertical-align: middle;
border: none;
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
/*margin: 0px 0px 0px 0px;*/
width: 468px;
height: 60px;
}

Bye and thanks for help.

Manu.

--


EMA


==> "."element{} ==>

..my_class_div{
text-align: center;
vertical-align: middle;
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
}

Sorry
Manu




Reply With Quote
  #3  
Old   
Jim Michaels
 
Posts: n/a

Default Re: Align: center for DIV and IMG not resolved ! - 02-04-2006 , 04:07 AM



img centers fine on my IE6 SP2 browser. Am I not understanding your
question? what was your question?
when was the last time you used windows update?
vertical align probably means nothing on a div I think. only on td. unless
you maybe had different-height-text spans within a div, then maybe...
doesn't hurt I guess.

"Manu" <emmanuel (AT) mazzola (DOT) org> wrote

Quote:
Hello the world,

Tested I.E. 6 and Netscape 7.02.... source:

Code XHTML 1.1 :
div class="my_class_div"
img class="my_class_img"
src="url"
alt="title" /
/div

CSS 'code':
.my_class_div{
text-align: center;
vertical-align: middle;
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
}

.my_class_img{
text-align: center;
vertical-align: middle;
border: none;
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
/*margin: 0px 0px 0px 0px;*/
width: 468px;
height: 60px;
}

Bye and thanks for help.

Manu.

--


EMA





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.