I'm a CSS dummy; what part of this code resizes pictures?

Petros

Thief IV
Joined
19 May 2003
Messages
3,038
I like my Myspace layout to look a certain way, but people sometimes post gigantic pictures that go beyond the borders and screw up the symmetry of my whole page.

Is there some code I could add that would reduce the size of oversized pictures, or just resize any posted picture to a certain size?

EDIT: Woot nevermind. For anyone that needs it:

Code:
<style type="text/css"> td.text td.text table table table td a img {width:100px;} td.text td.text table table table td div img {width:80px;} td.text td.text table table td img {width:260px; max-width:260px; width:auto;} td.text td.text table table td div img {width:80px;} * html td.text td.text table table td img {width:260px;} * html td.text td.text table table td a img {width:90px;} * html td.text td.text table table td div img {width:80px;} </style>
Can I request a mod to change the title to "Myspace code to resize comment images" or something to that effect?
 
Last edited:
I like my Myspace layout to look a certain way, but people sometimes post gigantic pictures that go beyond the borders and screw up the symmetry of my whole page.

Is there some code I could add that would reduce the size of oversized pictures, or just resize any posted picture to a certain size?

EDIT: Woot nevermind. For anyone that needs it:

Code:
<style type="text/css"> td.text td.text table table table td a img {width:100px;} td.text td.text table table table td div img {width:80px;} td.text td.text table table td img {width:260px; max-width:260px; width:auto;} td.text td.text table table td div img {width:80px;} * html td.text td.text table table td img {width:260px;} * html td.text td.text table table td a img {width:90px;} * html td.text td.text table table td div img {width:80px;} </style>
Can I request a mod to change the title to "Myspace code to resize comment images" or something to that effect?

Hey Petros.. glad you got it sorted.. couple comments/suggestions:

First: Clean up your code to make it more readable (hint: linebreaks and tabs are a start :p )

Second: As far as I can tell, you have a bunch of crap that while it may do what you want isn't really what you want in your style sheet as it looks like you are redefing styles for the same tags multiple times

Third: Don't just take code others have written without knowing what it really does (I'm assuming you copied and pasted this code from someone/somewhere else). It's dangerous if you don't know what each line does.
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back