CSS height changes when I put an image

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

beginner99

Diamond Member
Jun 2, 2009
5,315
1,760
136
I would be dealing with the exact same thing with a 3rd party solution when working to modify it so it can fit into the same look as the site while making my own template for whatever solution I went for. There is nothing more unprofessional than a site that has 5 different layouts and 5 different logins because they used 3rd party scripts for each section of the site and did not bother to properly integrate them. To integrate all of this is often more work than just coding it in especially for something very basic like this case.

Something like a forum? Yeah I'd use a premade script and just template it to blend in, a page that simply shows a couple pictures and has the ability to add more? Really not worth trying to dick around with 3rd party stuff.

How does adding a photo gallery add additional logins? Again, it doesn't that argument is complete BS.

If you use CSS properly design won't be an issue. You know, as example you can get a photo gallery based on JQuery-UI and JQuery UI has many default themes or you can create your own (per GUI) matching your web sites design (colors, fonts,...). The gallery will then just use that theme.

There is nothing more unprofessional than a terrible looking site that isn't compatible with all the common browsers including flavors of IE. You know what you get with something like jquery-ui and a photo gallery plugin? Yes, a gallery that works on different browsers.

Changes are you play around for another 5 hours till it works on your setup just to figure out it still looks terrible in Safari and Chrome and IE<insert version here>.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
I really don't understand this debate. Maybe I need to go back and read the thread again. Is Red Squirrel getting paid for this gig? Because if he isn't it's nobody's business what he wants to work on. I read an article the other day by a kid who wrote a rudimentary file system for Linux. If that's not a problem that is well and truly solved, what is? But he learned a lot of stuff, and that's how it goes with programmers who like to program. I've written all sorts of crap that reinvents the wheel, just because I felt like it.
 

beginner99

Diamond Member
Jun 2, 2009
5,315
1,760
136
I really don't understand this debate. Maybe I need to go back and read the thread again. Is Red Squirrel getting paid for this gig?

I assume so:

The client will be able to go in and make changes so it has to be easy and not require a bunch of different logins.

There's probably legal issues charging someone for code I did not write as well, so I rather just code everything myself and not have to worry about it.

That's why I think it's important to do it properly...IT people and programmers don't actually have a good reputation in general public and the reason for that is exactly crappy products. That's why I encourage the re-usage of existing and proven components.

@OP
And no there are no legal issues for jquery (MIT license) but obviously you would have to check for each component used.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Yeah, agreed in that case. If you're getting paid then you need to use the most efficient path to the end goal, and you should only roll your own where there is a well-defined need that you can't satisfy with an available and well-adopted library. End of story. Clients aren't paying for you to experiment with interesting stuff.
 

Red Squirrel

No Lifer
May 24, 2003
70,157
13,567
126
www.anyf.ca
How does adding a photo gallery add additional logins? Again, it doesn't that argument is complete BS.

Obviously out of the box it will have it's own database structure/system etc... By default it will have it's own login database and own admistrative portal. So to integrate with my code I will need to fully customize it so it talks with my own user DB and authentication system. By the time I do all that, it's much much easier to just code my own especially when all I want is a page that displays a few pictures.

I don't understand how people in a programming forum can be against programming.

Anyway this argument is pointless, since I long figured out the issue for myself, I still don't get why it was doing what it was doing, but it stopped doing it, so since nobody wants to have anything to do with actual code then I'll just have to research it myself next time I run into such an issue.
 

beginner99

Diamond Member
Jun 2, 2009
5,315
1,760
136
Obviously out of the box it will have it's own database structure/system etc... By default it will have it's own login database and own admistrative portal. So to integrate with my code I will need to fully customize it so it talks with my own user DB and authentication system. By the time I do all that, it's much much easier to just code my own especially when all I want is a page that displays a few pictures.

Wrong. You are making decisions without the proper facts. These libraries are for display only. mostly you just put the image tags in a container and tell the gallery which container it is and done. Example:

http://alexkalicki.com/jquery-simple-gallery/
 

purbeast0

No Lifer
Sep 13, 2001
53,544
6,368
126
Obviously out of the box it will have it's own database structure/system etc... By default it will have it's own login database and own admistrative portal. So to integrate with my code I will need to fully customize it so it talks with my own user DB and authentication system. By the time I do all that, it's much much easier to just code my own especially when all I want is a page that displays a few pictures.

I don't understand how people in a programming forum can be against programming.

Anyway this argument is pointless, since I long figured out the issue for myself, I still don't get why it was doing what it was doing, but it stopped doing it, so since nobody wants to have anything to do with actual code then I'll just have to research it myself next time I run into such an issue.

heh you are so far from reality and you basically let us know that you didn't even consider a 3rd party gallery option, even after a couple of us mentioned specific ones, because you assume you need a log in to view things.

as for the bolded, i asked you multiple times to post your code in a js fiddle so we could take a look at it and try to help you, but again, for some reason you were being stubborn and simply would not do it so there is no way we could look at the actual code and help you out.

but like you said, this is moot now because you are done.
 

Red Squirrel

No Lifer
May 24, 2003
70,157
13,567
126
www.anyf.ca
heh you are so far from reality and you basically let us know that you didn't even consider a 3rd party gallery option, even after a couple of us mentioned specific ones, because you assume you need a log in to view things.

as for the bolded, i asked you multiple times to post your code in a js fiddle so we could take a look at it and try to help you, but again, for some reason you were being stubborn and simply would not do it so there is no way we could look at the actual code and help you out.

but like you said, this is moot now because you are done.


Ok you guys are just being nit picky on details on specific solutions here. I was speaking more in general. Most solutions will have some kind of login given you need a password to change stuff.

My gallery is coded directly into my site and interfaces with my site's login system so the pictures can be changed/edited. There NEEDS TO BE A LOGIN SYSTEM FOR ADMINISTRATIVE PURPOSES, I'm not going to leave it wide open, the point of this is for the webmaster to go change stuff, that's it. Any solution that does not have that is not serving my needs, any solution that does will have to be integrated into my site to unify the login so the client only has one password to remember. Either way, it's more work to integrate something premade than to just code one in directly. There is ZERO REASON for me to use something 3rd party in this particular instance.

If this was a photo site and the highlight of the site was a gallery, then using something premade would make more sense if I need all the features, but in this instances it makes zero sense to use a full blown gallery system like you keep telling me.

If it was something like a forum or something bigger, then maybe it does make more sense, but for a simple page that displays about 10 photos, it makes absolutely zero sense for me to use something premade. It will be more work to integrate it. I don't care if it uses static flat files or a MySQL db or is completely static html or does not even have any dynamic content... it will be more work to integrate, end of story.

BTW. I actually have a photo gallery setup for another site (uses Plogger) so I do have an idea. The difference is that particular site is literally just the gallery, so it made more sense to just plop something premade there.

as for the bolded, i asked you multiple times to post your code in a js fiddle so we could take a look at it and try to help you, but again, for some reason you were being stubborn and simply would not do it so there is no way we could look at the actual code and help you out.

I don't know what js fiddle is and I'm not going to sign up to something just to post code when I can post it here, which I did. See post #5 The CSS is also in post #1. Though, that has changed and it works now, so it's pointless. The PHP probably does not matter, so that's why I never bothered to post it. This was strictly a html/css issue.

Basically, the answer to my original question was to put the vertical align to top. That is much much much easier than integrating a full blown gallery solution to replace all of my code.
 
Last edited:

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
I think this thread's productive period is behind us :). Regardless of anyone's opinion of the path OP chose to pursue, he came here with a specific problem that is now solved. I don't like locking stuff here, so let's agree to disagree and go on to the next bug.