It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Center

Center

Postby johneva on Sat Jan 07, 2006 5:36 pm

On my new site I have used external style sheets for all styles.

Thing is where I have inserted a Java Script on the page it is not centered when you veiw the page though Netscape, its ok on IE6 or FF.

What do I need to do to correct this?

I have tryed making the p text-align center in the styles sheet.

I have tryed using the div tag instead of the p tags either side of the Java Script then going into the styles sheet and making that align center.

I take it I need to use a diffrent way in the styles sheet?

Please help.
Thanx John
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Phate on Sun Jan 08, 2006 2:46 am

why dont you just add a <center> tag to the code itself? not in the CSS
Web-Developing since '03
Image
User avatar
Phate
500+ Club
 
Posts: 826
Joined: Sun Nov 21, 2004 4:12 am
Location: 127.0.0.1

Postby johneva on Sun Jan 08, 2006 10:09 am

Cos I did not want any styles in my XHTML.

I have figured it out now anyways cheers.

I needed to use the form property in my CSS as the search box is using form tags.

I still dont fully understand why it does this but it works now anyways.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England


Who is online

Users browsing this forum: No registered users and 10 guests