Jump to content

Centering CSS website content


Micah C
 Share

Recommended Posts

Hello Everyone,

I am programming a website for a client and I have run into a problem. I am trying to center a CSS image box. (Code listed below) Can anyone help me with this? Any Suggestions and ideas are welcome. Thanks for the help.

Micah C

Original Code found at:

http://sonspring.com/journal/hoverbox-image-gallery

The code is not currently centering on the clients website.

Link to comment
Share on other sites

Hello Everyone,

I am programming a website for a client and I have run into a problem. I am trying to center a CSS image box. (Code listed below) Can anyone help me with this? Any Suggestions and ideas are welcome. Thanks for the help.

Micah C

Original Code found at:

http://sonspring.com/journal/hoverbox-image-gallery

The code is not currently centering on the clients website.

Looks centered to me??

Link to comment
Share on other sites

Yes obviously the example code works fine. Quick and dirty solution: try loading the example CSS code last, either by putting it at the end of your single CSS file on your client's site or by putting it in the last CSS file to load. That will make sure whatever code that is breaking the centering is overridden by the properly-working example. You might also want to post this problem at webmasterworld, where I take all my broken CSS. Their forum rules that disallow linking will help you get to the bottom of the problem by untangling your spaghetti code into a simple example.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...