igames theme igames theme
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

igames theme

Started by Dankriss, March 12, 2009, 10:54:49 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Dankriss


Hi guys

Have a really strange problem with trying to change something on this theme...

I am trying to change the sub menu and system menu so that they appear in the center of the screen but I have tried to put in align="center" or <center> in various places on the css, templete.html and even the theme.php and it is still on the left of the screen... ???

http://www.michaelshanks.me.uk/album/index.php

Can anyone help I have run out of ideas... :-\

Thanks

Kriss  :)
Good with HTML and CSS but no good with script... so please bear with me.. :)

Joachim Müller

The reply I have typed to another thread just one minute ago probably applies to you as well: you need to upgrade first. Then make your custom theme validate. In my book, the CSS attributes for SUB_MENU don't contain any reference to alignment, nor is there any CSS definition for the wrapper MENUS, so what should happen in your opinion?

Dankriss


I did upgrade it the other day..to 1.4.20...although it still says .19 on my admin page... :-\...oh and it did say that I had upgraded as well got all of my ok's come up.

As to attributes what I want to do is to put the menus into the middle of the page like the rest of the gallery...but everytime I add the attribute to either the css sheet or the html or even the php it just doesn't work....I was wondering if there is anywhere in the pages that tells it to ignore anything else put in...what is really strange is when I change it in my html editor it works but when I upload it it doesn't...it is really confounding me... :-\

Will now go and look at the other thread so sorry if this is answered on there...I know should of looked first but still half a kip at the moment... ;D

Kriss  :)


Good with HTML and CSS but no good with script... so please bear with me.. :)

Dankriss


Ok off to upgrade to 21... ;D...didn't see it had gone up again...although I don't think it will solve my problem...

I am using google chrome and firefox and in both it does not center...

Kriss  :)
Good with HTML and CSS but no good with script... so please bear with me.. :)

Joachim Müller

Quote from: Dankriss on March 13, 2009, 08:21:43 AM
I am using google chrome and firefox and in both it does not center...
Why should it: there's no code neither in template.html nor in style.css to make it center-aligned. I already told you:
Quote from: Joachim Müller on March 13, 2009, 08:10:26 AMIn my book, the CSS attributes for SUB_MENU don't contain any reference to alignment, nor is there any CSS definition for the wrapper MENUS, so what should happen in your opinion?

Dankriss


I know there is no code in there...so I tried to put it in there and it didn't work...that is the problem...why is it not working?...everything else has worked when changing the css and html but not centering the sub menus.

Kriss  :)
Good with HTML and CSS but no good with script... so please bear with me.. :)

Joachim Müller

Show us what you put in that didn't work. Put it back in, then reply here, so we can take a look at it and maybe suggest a fix.
Zip your custom theme folder and attach the zip archive to your posting.

Dankriss


Ok will do that once I have upgraded so will be later on today...thank you!

Kriss  :)
Good with HTML and CSS but no good with script... so please bear with me.. :)

Dankriss


Ok I have now upgraded and attach a copy of the theme file and I have uploaded the altered templete file...in my editor it is showing the menus as centered....

[url]http://www.michaelshanks.me.uk/album/index.php/url]

Kriss  :)


Good with HTML and CSS but no good with script... so please bear with me.. :)

Dankriss


Sorry this has not been solved was trying to edit the last post but couldn't find the button...

Kriss  :)
Good with HTML and CSS but no good with script... so please bear with me.. :)

Joachim Müller

#10
You made every HTML and CSS mistake one could make, so I really suggest you look some things up and learn a bit more. Your custom theme is miles away from being valid or from looking the same in all major browsers. I edited out some of the most serious mistakes, like using header tags (<h1>, <h2>, ...) for actual size representation. The header tag is a logical atribute - it mustn't be abused for representing sections of your output in a particular font-size. Another very silly thing is relying on the presense of a particular font and throwing all fallback mechanisms overboard - your site looks really stange on other machines but yours, as "Trebuchet MS" can't actually be called a common font. Using the background image of the actor your site is about and tiling that tiny image all over the screen looks weird as well and gives your page a very "home-made" look (home-made as in "unprofessional").
I could go on about the design mistakes you made for hours, anyway that would be too much off-topic. Your question was "why does my navigation not look centered"? The answer is: the navigation resided inside a table that was set to use 100% of the screen width, with the table cell at the most right position set to fill up all remaining space. With that setup (a table that already is 100% wide), you can put any wrapper around that construct, the result will remain. I edited out the 100% width and got rid of the empty table cell at the very right - now you should get the intended look. However: before fine-tuning your site by looking into the alignement of your menu, you should make it work in visitor's browsers first, which means: fix your HTML and CSS, it's a mess. Use the modified theme I attched (and keep the theme name that I have given your theme to make sure you don't overwrite your custom theme when updating in the future) as a base. Then try to validate your output first - you'll learn a lot if you do so.

Dankriss


Thank you for your help I will look into it.... :)

Kriss  :)
Good with HTML and CSS but no good with script... so please bear with me.. :)