Replies

May 18, 2014 11 years ago
Pepsi_306
gets around
User Avatar

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. :)

May 19, 2014 11 years ago
Adventure Captain
sonata
User Avatar

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.

Art by
[tot=sonata]

May 19, 2014 11 years ago
Pepsi_306
gets around
User Avatar

; So if I want it to be smaller, it's just not going to happen?

May 19, 2014 11 years ago
Adventure Captain
sonata
User Avatar

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.

Art by
[tot=sonata]

May 19, 2014 11 years ago
Pepsi_306
gets around
User Avatar

; Oh! I had a brain fart. I understand now. Well this is great to know for future profiles. Thanks for the help! :)

May 19, 2014 11 years ago
Adventure Captain
sonata
User Avatar

Definitely something to keep in mind when working with that div. Which is sometimes necessary (or at least the easiest solution) :)

Art by
[tot=sonata]

May 19, 2014 11 years ago
Pepsi_306
gets around
User Avatar

; 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.

May 19, 2014 11 years ago
Adventure Captain
sonata
User Avatar

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.

Art by
[tot=sonata]

May 19, 2014 11 years ago
Pepsi_306
gets around
User Avatar

; 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!

May 19, 2014 11 years ago
Adventure Captain
sonata
User Avatar

Ouch. Yeah as long as it works I'd say just leave it. ^^

Art by
[tot=sonata]

May 19, 2014 11 years ago
Pepsi_306
gets around
User Avatar

; 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! :)

May 19, 2014 11 years ago
Adventure Captain
sonata
User Avatar

I know the feeling. One troublesome commission can ruin the rest of them.

Art by
[tot=sonata]

May 19, 2014 11 years ago
Pepsi_306
gets around
User Avatar

; 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.

May 19, 2014 11 years ago
Adventure Captain
sonata
User Avatar

True. ^^

You make lovely pet profiles too though, so the easy solution is just to do more. :)

Art by
[tot=sonata]

May 19, 2014 11 years ago
Pepsi_306
gets around
User Avatar

; Ah, thank you very much! I'm hoping to open commissions soon, but my college semester starts tomorrow, so I'll need to see how busy I'll be first.

Please log in to reply to this topic.