New messages Members Forum rules Search
  • Page 1 of 2
  • 1
  • 2
  • »
Forum moderator: kostova  
uCoz Support Forum by uCozers » uCoz » Forum » How to set width and height to [img] [/img] tags (sml[tutorial]Tutorial!)
How to set width and height to [img] [/img] tags
jackassDate: Tuesday, 2009 June 30, 8:03 PM | Message # 1
Font size: A | A |
Major general
Group: Administrator
Message: 433
[ ]
Offline
If you want to set width and height to [img] [/img] tags, then paste this code in CSS

Code
.posttdMessage img {
max-width:700px;
width:expression((this.width>700) ? "700px" : true);
}
.posttdMessage img {
max-height:700px;
height:expression((this.height>700) ? "700px" : true);
}

Where 700 you can set your size!

We have set this in our forum as well smile

Enjoy



Taken from http://arnis.ucoz.lv/forum/29-122-2


 
BadBoyDate: Tuesday, 2009 June 30, 11:27 PM | Message # 2
Font size: A | A |
Lieutenant
Group: uCozer
Message: 74
[ ]
Offline
so that means i can post any large image between [img] [/img] tags and it will resize automatically in this forum?
if yes that means we dont need rule on posting large images in this forum?
 
jackassDate: Tuesday, 2009 June 30, 11:46 PM | Message # 3
Font size: A | A |
Major general
Group: Administrator
Message: 433
[ ]
Offline
BadBoy, yes!

 
jackassDate: Wednesday, 2009 July 01, 4:40 PM | Message # 4
Font size: A | A |
Major general
Group: Administrator
Message: 433
[ ]
Offline
Hetor, it set size only for max resolution! Like in Photo album!

 
jackassDate: Wednesday, 2009 July 01, 7:02 PM | Message # 5
Font size: A | A |
Major general
Group: Administrator
Message: 433
[ ]
Offline
Hetor, No.
You can test on your site if you want.

It takes about 2 min


 
BadBoyDate: Friday, 2009 July 03, 10:34 AM | Message # 6
Font size: A | A |
Lieutenant
Group: uCozer
Message: 74
[ ]
Offline
Quote (Hetor)
it will cut it

jackass you gotta fix these, i righter if it just stretched
 
jackassDate: Friday, 2009 July 03, 3:38 PM | Message # 7
Font size: A | A |
Major general
Group: Administrator
Message: 433
[ ]
Offline
Maybe you will test it and than post here what to fix?

 
barc00deDate: Sunday, 2009 August 02, 1:12 AM | Message # 8
Font size: A | A |
Lieutenant
Group: uCozer
Message: 55
[ ]
Offline
How to do this for Site News
 
jackassDate: Sunday, 2009 August 02, 3:07 AM | Message # 9
Font size: A | A |
Major general
Group: Administrator
Message: 433
[ ]
Offline
This must to work on all site! I guess

 
Z10Date: Sunday, 2009 August 02, 3:37 AM | Message # 10
Font size: A | A |
Major
Group: uCozer
Message: 100
[ ]
Offline
Quote (barc00de)
How to do this for Site News

barc00de, Why don't you try it out and see. Instead of asking questions and being lazy.


"When life gives you lemons, make orange juice. Sit back, relax, and let the world wonder how you did it."
 
LeekinzDate: Sunday, 2009 August 02, 3:40 AM | Message # 11
Font size: A | A |
Lieutenant colonel
Group: uCozer
Message: 123
[ ]
Offline
barc00de, Because it's CSS it will add it for all Modules, Forum, Guestbook, etc.

 
kostovaDate: Thursday, 2009 August 13, 2:32 AM | Message # 12
Font size: A | A |
Colonel
Group: Administrator
Message: 268
[ ]
Offline
This doesn't have to be separated by two of the same selector.
You can just do this instead:
Code
.posttdMessage img {
max-width:700px;
max-height:700px;
width:expression((this.width>700) ? "700px" : true);
height:expression((this.height>700) ? "700px" : true);}
 
KroneDate: Wednesday, 2009 October 14, 1:19 AM | Message # 13
Font size: A | A |
Lieutenant
Group: uCozer
Message: 79
[ ]
Offline
Were abouts to plae within the CSS?

http://www.gamescenterarcade.com/
 
kostovaDate: Wednesday, 2009 October 14, 1:43 AM | Message # 14
Font size: A | A |
Colonel
Group: Administrator
Message: 268
[ ]
Offline
Krone, just place this anywhere in the css.
 
EasyShareZDate: Saturday, 2009 October 17, 2:06 PM | Message # 15
Font size: A | A |
Sergeant
Group: User
Message: 39
[ ]
Offline
This was a great help, Thank you

 
uCoz Support Forum by uCozers » uCoz » Forum » How to set width and height to [img] [/img] tags (sml[tutorial]Tutorial!)
  • Page 1 of 2
  • 1
  • 2
  • »
Search:


Copyrights uCozers 2009 - 2024 To TOP
Refresh Smileys Manager