CENTERING WEBSITE HAVING ISSUES?
Moderator: General Moderators
CENTERING WEBSITE HAVING ISSUES?
Ok i did this design using Photoshop CS5 and once i was done i sliced it and did save for web. I got the index.html file and the images folder. I use Expression Web to do the rest as HTML. I tried many ways to center the website it just wont go to center stays to the left page. Is there a solution to this issue to put this website to center?
Re: CENTERING WEBSITE HAVING ISSUES?
Specify the width of the wrapper element and set left/right margins to auto.
http://jsfiddle.net/tnX8B/
http://jsfiddle.net/tnX8B/
Re: CENTERING WEBSITE HAVING ISSUES?
Where does that wrapper go which section sorry i am new at this stuff
Re: CENTERING WEBSITE HAVING ISSUES?
Just inside the body tag, typically. It wraps the rest of your markup. You don't necessarily need to add a div, mind you; you could easily apply the same CSS to an existing wrapping container.
Re: CENTERING WEBSITE HAVING ISSUES?
The thing is the sliced images and html that was exported as web from Photoshop don't even have tables i was told that you have to do it from scratch in order to center it and they need to have tables in order to work that's what this guy told me. Is that correct information?
Re: CENTERING WEBSITE HAVING ISSUES?
Sort of. Tables were used for layout maybe ten years ago. Modern web dev uses more semantic markup and uses CSS for more heavily. Long gone are the days of 1px spacer gifs. Still, if you're doing a PSD to HTML conversion, you will need to do the markup from scratch. My suggestions would be to forget pixel perfection, forget slicing up the PSD and trying to put the whole mess back together, and rather to export only the images that cannot be recreated through markup.
Re: CENTERING WEBSITE HAVING ISSUES?
One thing i do not understand the website i did before this one was the same PSD TO HTML and i was able to center it without a problem but this one no.
Re: CENTERING WEBSITE HAVING ISSUES?
How did you do it on the other one? I haven't seen the markup or the styling for either of them, so I certainly can't guess.
Re: CENTERING WEBSITE HAVING ISSUES?
It just basically designed the layout template then sliced the parts that i need to be used once i did save as web and i opened with expression web i highlighted the whole layout change the position from left to center and it went to center as simple as that.