I have my programmer to set up a website. In IE its perfectly in centre but when i view it in Mozilla, the whole design is on the left..... Kindly please advise.... Regards, PLR
fire your designer without seeing the site or code, its near impossible to guess (and i'm guessing its horridly table-ridden coded) throw a div around the whole thing (ie, <body> <div id="wrapper"> . . . </div> </body> and add #wrapper { margin: 0 auto 0 auto; } to your css file (if you have one
Your solution is incomplete, and inaccurate, briansol HTML: <div align="center"> <div id="wrapper">Content here</div> </div> Code (markup): CSS: #wrapper { margin: 0 auto; text-align: left; width: 770px; } Code (markup):
As is yours. Your div alignment is outdated, incorrect and isn't needed. All you need is the following; <div id="wrapper"> <-- Site Content --> </div> Code (markup): Add this to your stylesheet; #wrapper { width:780px; margin:0 auto; } Code (markup): That is all there is to it... However, you would change the width of the wrapper to match that of your current setting. Nothing more, nothing less.
Yes, fire the dude... A good coder codes by hand, therefore knowing the codes. So he knows what's going on... Most coder uses a software and check on only one browser, assuming it is ok...
I also had this problem before. What I do is set "text-align:center;" do the body, then "marign: 0 auto;" and "text-align:left;" to the div containing the website.
By the way i see it, he said "programmer" not "designer". Maybe he should hire another one as a designer, or he should try to make his own design.
@ Mooseman. That is such an outdated method. How are we supposed to take design to the next step when people insist on designing like that. There is no need.
At the very least your web designer/coder should check IE and FF. Plus all the others... If their code even slightly breaks in either IE or FF, refuse to pay, and find someone who knows what they're doing.
Im having some what of the same problem.... Little different. I have my tables centered but its my text within that I'm having trouble with getting to correspond with the margins I like to set. Of course it looks great in IE haha. the site is phaostudentministries . Any suggestions would be great, thanks.
Chill. And give your own code a try in IE 5.5. Then go back and read the book again. It will teach you how to make sure older browser versions won't left align your wrapper div instead of centering it. Then you can teach others about safe coding.
In reference to this: Clive wrote: Clive, Ginger is quite correct. The align attribute has not been a part of any strict DTD since 1998. IE5.x, along with Navigator4.x, is quite dead. I, being the up front kinda guy I am, tell my clients they will pay a premium to include backward compatibility with IE5.x. I do not offer NN4 support. When clients are shown the kind of non-standard markup and styling hacks required by IE5, they have no problem with my position. I do check to see that the page is usable, but if it ain't completely broke, I don't fix it. The valid way to center the IE5 and IE6 in non-standards mode is to use the text-align property. IE quite improperly applies the property to block elements. Adding it to the body element will cause it's descendant elements to be centered. If the wrapper element is then made {text-align: left;}, all is back to normal, with only the wrapper centered. In no case should the <center> element nor the align attribute be used. cheers, gary
I forgot what we were discussing here initially right after finding myself under attack Dropped you a PM anyway.
@PLRGuru: You were given solutions by briansol, Clive, Ginger Ninja and Mooseman, all workable, with Mooseman's being the most inclusive and valid. You will even find a solution buried in my post, if you dig a bit. The point of forums like this is to help you fix your problems, not to do the work for you. @Clive: There was no attack intended, just a bit clearing up bits of confusion and errata. cheers, gary
I've fixed it for ya, PLRGuru. You may now remove the temp FTP details. And yes, you've been a bit lazy with all of us giving you right directions towards a solution for your website align issue. The overall coding is quite dirty, too. That's because of the ImageReady Slicing tool that you have used to generate it.
Please start a new thread, with a descriptive subject line and a specific problem statement. When you hijack a thread, your details are lost in the shuffle. See How to ask. cheers, and enjoy the forum, gary