PEO Posted July 4, 2009 Posted July 4, 2009 Hello Im trying to change the top part of the joomla site and I'm starting to make some progress, but Im having trouble making my text centred in the table using css. For some reason it keeps pulling to the left. can anyone help me please. css code... .ts-1 { border: none; height: 57px; margin-left: auto; margin-right: auto; position: relative; text-align: left; width: 950px; } .ts-1-1 { background-color: #333333; border: none; height: 19px; left: 0px; padding: 0px; position: absolute; top: 0px; width: 475px; } .ts-1-2 { background-color: #333333; border: none; height: 19px; left: 475px; padding: 0px; position: absolute; top: 0px; width: 475px; } .ts-1-3 { border: none; height: 19px; left: 0px; padding: 0px; position: absolute; top: 19px; width: 553px; } .ts-1-4 { border: none; height: 19px; left: 553px; padding: 0px; position: absolute; top: 19px; width: 397px; } .ts-1-5 { background-color: #cc9999; border: none; height: 19px; left: 0px; padding: 0px; position: absolute; top: 38px; width: 950px; } php code spare additional logo search site menu
EduTech Posted July 4, 2009 Posted July 4, 2009 (edited) this will do it: spare additional logo search site menu Leave the CSS as it is James. ignore me; it works in a general php editor.. i dont have joomla to look at the test of the code. sorry. Edited July 4, 2009 by EduTech
PEO Posted July 4, 2009 Author Posted July 4, 2009 Thanks James unfortunately it dosent work. If i create this without the rest of the index content, it then works fine.... something else in the edujoomla code must be making it all go left
mossj Posted July 4, 2009 Posted July 4, 2009 Why not just change ts-1, text-align from "left" to "center". You have everything else positioned absolute so it shouldn't effect the layout. and it will be inherited down the chain. p.s nice to see you changed the colors so you can see whats what... Neopolitten is so in this year!
PEO Posted July 4, 2009 Author Posted July 4, 2009 Why not just change ts-1, text-align from "left" to "center". You have everything else positioned absolute so it shouldn't effect the layout. and it will be inherited down the chain. p.s nice to see you changed the colors so you can see whats what... Neopolitten is so in this year! lol!!! graphics to be added later. just doing one step at a time, I've made some progress
PEO Posted July 4, 2009 Author Posted July 4, 2009 stupid problem progress. just need to create a top menu module, change sitemenu, and add graphics
mossj Posted July 4, 2009 Posted July 4, 2009 All easy enough to do just look it up on the Official Joomla Wiki or use sysmans templates as examples (thats what I do ) I think all you need to do, is add the position to the xml file, and then to the php/html itself.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now