I’m making an application using Dreamweaver for a school project, and have used a version of the code I found online and re-writing it to suit the assignment needs.
Problem I have my links as actual images created in Photoshop (which are working). These are on a .css file, each by their own separate li tag. (These don’t need to be changed!)
Eg.
li.accom {
height:93px;
width:556px;
background-image:url(../images/accom.png);
}
Question
How do you center these images? I’ve tried text-align=centre; and that hasn’t worked.
2
Answers
Try this https://jsfiddle.net/2Lzo9vfc/64/
CSS
For backgrounds you have These CSS rules.
For your image, you will need of
background-position
attribute with value:center
and, if you don’t want it to be repeated,background-repeat
attribute with valueno-repeat
.