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:

fitz

Woah.. I'm still here?
Political Access
Joined
26 Apr 2004
Messages
4,084
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 forum posts

Latest profile posts

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.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
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 coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!
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!

Forum statistics

Threads
61,997
Messages
673,414
Members
5,591
Latest member
nodee