Member Login

You are not currently logged in.






» Register
» Lost your Password?

Display all post images same width | Thesis CSS | Forum

Welcome to our Members Only Forum

You are welcome to view the content on our Forum, just scroll down to view this forum post.
If you like what you find and want to be able to post a question, please check out our subscription options.
Please feel free to search the forum using either the Google Site Search above or the forum search below.

For a Limited Time Only

Join our Community for as little as
$0.43 PER DAY!
THIS OFFER EXPIRES May 31st!


 
You must be logged in to post


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Display all post images same width

UserPost

12:23 am
February 15, 2012


Juliette

Basel, Switzerland

Jedi

posts 90

1

Is there a way to define how all post images of a blog are displayed, without having to adjust every single post image manually?

If different users are adding posts, they do not always know how to resize an image, thus the image is often displayed too large or too small. I would like all images to have a width of 500px. (labablog.ch)

How is this best acheived?

3:45 am
February 15, 2012


Gelie Laxamana

Philippines

Moderator

posts 15

2

Hi Juliette,

 

The best way to do that is with CSS. You need to define first a “class” for your images from the post and add styling on it from your custom.css file.

You can put on your custom.css

 

.custom .format_text img{

Width: 500px;

}

 

If you want to learn more about CSS and Custom Body Class, Rick has a Video Series at http://www.byobwebsite.com/les…..ng-thesis/

7:14 am
February 15, 2012


Rick Anderson

Edmonds, WA

Admin

posts 3156

3

You could also try using a % instead of an absolute width.  Although the images will look lousy if they are smaller than the desired width.

12:14 am
February 16, 2012


Juliette

Basel, Switzerland

Jedi

posts 90

4

Thank you Rick, it worked.

laugh

8:35 am
February 17, 2012


Rick Anderson

Edmonds, WA

Admin

posts 3156

5

Great. cool



About the Build Your Own Business Website Forum

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 38

Currently Online:
12 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 7
Forums: 40
Topics: 1646
Posts: 7185

Membership:

There are 2366 Members
There have been 3 Guests

There is 1 Admin
There are 2 Moderators

Top Posters:

Brian Tozer – 400
Reece Morrel – 285
Rachel McFadden – 143
Jackie Jacobson – 140
steve Whitehead – 134
Catherine Mulhern – 130

Recent New Members: Francisco Mogollon, amember, Tim Frisch, kay ache, Harold Goldsmith, Todd Wilson

Administrators: Rick Anderson (3156 Posts)

Moderators: Gelie Laxamana (15 Posts), Jorene Abapo (0 Posts)