Jump to content

Recommended Posts

Posted

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
		
	

stupidproblem.png

Posted (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.

image01.png

Edited by EduTech
Posted
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 :(
Posted

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!

Posted
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

Posted
stupid problem progress. just need to create a top menu module, change sitemenu, and add graphics

stupidproblemprogress.png

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...