Table attributes (vertical alignment and height) issues Table attributes (vertical alignment and height) issues
 

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

Table attributes (vertical alignment and height) issues

Started by daryl, June 12, 2006, 10:19:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

daryl

Hi again,

When I click on one of my categories the table moves down a bit compared to the front page. I would like them to be aligned the same vertically, and share the same height (but sadly cant find where I set that)

url: http://darylart.com/gallery/index.php vs http://darylart.com/gallery/index.php?cat=11

Again, most appreciated for any help. Thanks.

Sami

you should add valign="top" to first <tr> tag of the table with 1000px width in template.html, it will look like this:
<center><table width="1000px"  border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
‍I don't answer to PM with support question
Please post your issue to related board

daryl

Are you sure about this? Because I tried it and there was no difference. When clicking on one of the categories, my banner and the table containing the albums moves down a bit compared to first page.

Thanks again.

Gizmo

If I download your page, I see a number of extra <br>'s in the beginning of the <body>. This looks like a modified Hardwired theme and since it's a heavy coded theme with lots of tables and graphcs, you probably edited too much out or put something else in (that's my guess). Plus I can see that you're using a <div> for the gallery name but aren't actually showing a name. If you zip up your theme and attach it, we'll take a look at it but I'd recommend taking a much simpler theme and then add things as you go along. Going in reverse like you have can be troublesome.  ;)

Also, your site doesn't validate (<br> should be <br />, etc) so I'd recommend following the procedure in the Sticky at the top of this board: http://forum.coppermine-gallery.net/index.php?topic=24056.0. At the end of this sticky is also some very useful tools for debugging your website. If you're using Firefox (please say yes) then this extension is also very useful - Aardvark - http://karmatics.com/aardvark/:)

Later,

Gizmo

Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Sami

Sorry for late answer !
- you were right the valign=top did not solved your issue
- Gizmo is right , after I check your source I found some empty div tag & some unclosed tag.
As gizmo said you can zip your theme and put it here to see how can we solved this issue


Update:also it's good to upgrade your CPG (1.4.7) to 1.4.8 your version has a small bug
‍I don't answer to PM with support question
Please post your issue to related board

daryl

Thanks guys

Basically I tried starting from scratch, with the sample theme to begin with. Never got the fonts right in category and albums so I slipped into the Hardwired theme and started deleting tiling backgrounds and stuff to my liking, bad idea I suppose. But basically I'm really pleased with the way it is now except for this one issue, so I zipped the theme which can be downloaded here: http://darylart.com/daryltheme.zip

Hope this wont be too time consuming on your side, and Im as greatful as ever.

table alignment consistent on all pages
table height consistent on all pages

Cheers, u rule!

Gizmo

Hi daryl,

I took a couple of liberties here but I think you'll find it much easier to edit and understand (assuming you understand what a <div> tag is). I changed your template.html and added 3 new properties to your style.css (they are at botttom above the vanity property). The {sub_menu} has a black background now but if you want the blue, change the .topmenu backgound color.

Let me know what you think.  ;)

Cheers,

Gizmo

PS. I also tweaked the "Powered by Coppermine" line a bit.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

daryl

Man, you're the best! I can't thank you enough, I really appreciate all help that I got. Now everything is structured the way I want it and I can start tweaking the looks of the site. Also thanks for making the "powered by coppermine" at a better position.

Thank you thank you thank you.. really.

All the best, /D

Sami

‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

Hi daryl,

You're most welcome but 99.9% of the credit goes to the dev team for developing CPG into such a great product that is easy to skin so I just take advantage of their hard work and dedication.  :D I have to say that I enjoyed looking at your artwork and that Clawman fits my mood after getting off the plane from one of my many long flights.  ;)

If I may offer some additional advice on your site, I would recommend moving the "Home" button down to the Sub_Menu and hide the Login button since you will be the only person adding work to your site. It's makes for a cleaner professional look IMHO. There's plenty of posts on the subject and a Sticky at the top of this board for removing buttons here: http://forum.coppermine-gallery.net/index.php?topic=25197.20. You can create a bookmark for logging in which is what I do then visitors aren't temped to "click that button" to see where it may lead them.

Good luck with your studies!

Cheers,

Gizmo

PS. bmossavari, many thanks for the kind words. I've been reading your posts and good karma to you for all your suggestions and theme upgrades. Now if I can only figure out how to read a RTL language!  :P
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision