Problem with valign="middle" Problem with valign="middle"
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Problem with valign="middle"

Started by hama, May 20, 2004, 12:37:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hama


I worked a little bit in template.html (in themes).

So I changed from


<table width="100%" height="100%" border="0" cellpadding="20" cellspacing="20" bgcolor="#CCCCCC">
<tr>
<td valign="top" bordercolor="#666666" bgcolor="#FFFFFF" style="border: 1px solid;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">{MAIN_MENU}</td>
</td>
</tr>
</table>


to


<table width="100%" height="100%" border="0" cellpadding="20" cellspacing="20" bgcolor="#CCCCCC">
<tr>
<td valign="middle" bordercolor="#666666" bgcolor="#FFFFFF" style="border: 1px solid;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle">{MAIN_MENU}</td>
</td>
</tr>
</table>


In some browsers the links are now centered horizontally and vertically but in my browsers (opera 7 and IE 6) the links are not centered vertically. I perfer both centered.

--> http://dorfschule.ch/copper/index.php

Does anybody has an idea? It's not important that the main administrators of the forum have to answer (I know they have better things to do). Maybe a normal member of the forum and user of this fine gallery has an idea.

:)

Thanks

Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Joachim Müller

This is in no way related to coppermine, but simply a html issue. The code you mentioned is not standards compliant code (I won't start a discussion on standards or nested tables as a way to design pages). To answer in short: your observation is true, but can not be changed easily (without building complicated code with browser window size detection and silly use of JavaScript). Wlecome to the world of browser differences ;)...
Although I don't want to discourage you I must say your posting is somewhat off topic and you should preferably look this up on the usual resources for webdesign - in your case (you probably already know that) the "bible" is SelfHTML...

GauGau

hama


You should have become a bad teacher because you are really good at letting people down.

Hope the same never happens to you.

:-\\

</solved>
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Casper

Actually, Gaugau's response has more chance of helping you learning something, than if he just said, 'sorry, not a coppermine issue' go find out for yourself.'
As he said, this is not a coppermine issue, but still took the time to give you an answer that helped you resolve it.  I'm glad all coppermine users are not as ungrateful as you.
>:(
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

hama


Quote
Does anybody has an idea? It's not important that the main administrators of the forum have to answer (I know they have better things to do). Maybe a normal member of the forum and user of this fine gallery has an idea.

That was my question.

I think all of us have better things to do than discuss about topic and off topic. The most important thing is that with coppermine I found a fantastic gallery. So I decided to change from my old one (PhpWebGallery) to this one. I don't have the time to go deep into html or css. My main job is teaching kids and help them to find an apprenticehip. Administrating the school website is just a hobby and a goodwill job for the kids.

I'll try to find answers for my design questions in an other forum. In some forums the have one part with the title "off topic" but when I see how big your forum is so I can understand that you're not looking for new topics.

"Ungrateful or not", "good at letting people down" - Life is to short to think about such silly stuff. I suppose the truth is maybe somewhere in valign="middle".

Have a good time and be glad that you are so good in html, css, php, mysql ... I would like to know that too.

;)

Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!