/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* Class for the image to be centered */ .centered{ width:1024px; height:641px; position:absolute; left:50%; top:50%; margin:-320px 0 0 -512px; /* Adjust as needed to center */ }