I'm having annoying issues with a pet profile I'm coding for someone. See here.
I have the width of set to 320px, and the area in the profile is clearly wider than that. I've put !important after the size and it does nothing, so I'm clearly missing something.
As far as I can see (though I could be missing something that I don't know about) there isn't anything else causing that section to be as wide as it is. The width of everything else inside the div is set smaller than 320px.
Any help would be great! I need some fresh eyes to look through my code. :)
I'd still like to know why the width doesn't change on the pet_info div, but I've found a new fix so looking at my code won't help you figure out what I may have done wrong. But if anyone still has an explanation on why the width on the div wouldn't change for any reason, I'd love to know still. :)
As far as I can tell has a min-width set, so if you don't mess with that that's the smallest it'll be.
; So if I want it to be smaller, it's just not going to happen?
It can get smaller, you just have to set the min-width too. You can set it to 0px if you want, or basically anything smaller or equal to the width you want.
; Oh! I had a brain fart. I understand now. Well this is great to know for future profiles. Thanks for the help! :)
Definitely something to keep in mind when working with that div. Which is sometimes necessary (or at least the easiest solution) :)
; This profile was the first time I ever had issues with that div. Drove me crazy and I wound up recoding everything anyways. :P But at least now I won't have to go through all that again.
Yeah, not often used if you like to position everything. Which I do.
I just remember using it on my template profiles for my own pets, where I was wondering why on earth that thing just wouldn't go as narrow as I wanted it. xD Pesky little things, those divs.
; I normally do that too, but with this profile I was trying to put everything in a little box and have it scroll. I guess I could now go back and recode it, but I'm over it, haha. I was messing with that code for 4 hours yesterday. Definitely done with it.
They are very pesky!
Ouch. Yeah as long as it works I'd say just leave it. ^^
; I definitely don't want to mess with it any longer. It'll turn me off from finishing the rest of my commissions, which are all user profiles except for one. But everyone's been waiting a real long time, so I want to get them finished up! :)
I know the feeling. One troublesome commission can ruin the rest of them.
; The commission wasn't the issue. I didn't mind it at all! It was more of me trying to do something I didn't realize I didn't know how to do. :P I'm not yet nearly comfortable with pet profiles as I am with user profiles.
True. ^^
You make lovely pet profiles too though, so the easy solution is just to do more. :)