This bloody css – it just seems to be over complicated if you ask me… but anyway, I’m trying, so here’s my latest problem.
All I want is a centred image! I’ve used some code that stafan developed for me to achieve a certain effect, and now I cant for the life of me get the image to go in the centre of the box. Here’s my CSS code:
body {margin:10px; color:white; font-family: tahoma, arial ;}
#left {width:65%; float:left; border:1px solid #C00000; background:#CFD0E7; margin: 0 0 0 0;}
#right {margin:0 0 20px 67%; border:1px solid #C00000; background:#CFD0E7;}
#left div {width:100px; height:100px; float:left; background:#A5A8C9; margin:5px 5px 5px 5px; border:1px solid #c00000; text-align:left;}
#left img {margin: 2px ; float:center ; border:1px solid #C00000 ; clear:both }
#right img { margin: 10px ; left: 50% ;}
h1 {color:white; font-size:100%; text-align:left; background:#C00000; border:3px solid #C00000 ; margin: 0 0 0px 0 ;}
h2 {color:#161F7A; font-size:100%; text-align:center; margin:5px ; font-weight: bold ;}
h3 {color:#161F7A; font-size:80%; text-align:left; margin:5px ; font-weight: bold ;}
p {color:#52567C; font-size:80%; text-align:left; margin:5px ;}
ul {color:#52567C; font-size:80%; text-align:left; margin:5px ; list-style: outside ;}
li {color:#52567C; font-size:100%; text-align:left; margin:5px 5px 5px 25px ; list-style: disc ;}
I want the right hand box to have an image in it which is centred horizontally – can u help guys??!! Many thanks in advance,
John