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

Petros

Thief IV
Joined
May 19, 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:

fitz

Woah.. I'm still here?
Staff member
Political User
Joined
Apr 26, 2004
Messages
4,082
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

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
61,993
Messages
673,362
Members
89,035
Latest member
adreinrich