Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Align problem due to css
Old 07-18-2011, 07:10 AM Align problem due to css
Junior Talker

Posts: 1
Trades: 0
I recently purchased two templates, a html site and an oscommerce site. I planned to use the html site as a landing page and the oscommerce site as a catalog. I wanted the style to be the same across all pages using the html site style so i combined the two stylesheets. Each page is correctly rendered in Firefox however the aligning of the header and footer in IE are not central but rather hard left. Could any one tell me what hack needs to be done to fix this problem or where I am going wrong. Thanks in advance.

The stylesheet can be viewed at catering.basterfieldonline.com/stylesheet.css and the site can be viewed at catering.basterfieldonline.com
mjwb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-18-2011, 11:01 AM Re: Align problem due to css
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Sorry, I havn't looked at your site or the css document.
But generally, centering is accomplished by setting an automatic margin (margin: 0 auto. To also work for older IE versions one normally also adds text-align: center; to the surounding element, and then set the align back to normal within the centered element.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 07-18-2011, 11:06 AM Re: Align problem due to css
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
margin: 0 auto; is for centering BLOCK level elements. The img element is an inline level element so is affected by text-align: center;
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Align problem due to css
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20830 seconds with 12 queries