Image centering problem
-
Hey!
I’ve got a cosmetic issue with spread pages. I’m not terribly advanced with CSS so I can’t seem to conjure up a solution for this.
Single page comics show up just fine. They’re always a fixed width and pose no problems, as they center without issue and align with everything else. However, if you look at the linked page, you’ll notice that the spread pages are a little awkward to look at. They don’t center, and you have to scroll right to view them.
I reckon the centering problem is because the comic image inherits its properties from the body. Is there any way to fix this?
This is how the CSS for the #comic and #comic img look like.
#comic img { max-width: 2000px; height: auto; text-align: center; border-bottom-right-radius: 15px; border-bottom-left-radius: 15px; border-top-left-radius: 15px; border-top-right-radius: 15px; border-bottom: solid 1px #000; border-top: solid 1px #000; border-left: solid 1px #000; border-right: solid 1px #000; } #comic { display: block; margin-left: auto; margin-right: auto; padding-left:45px; padding-top: 0px; text-align: center; display: table-cell; vertical-align: top; width: 100%; }
Cheers!
The page I need help with: [log in to see the link]
- The topic ‘Image centering problem’ is closed to new replies.