| Directory Forum Reviews Join Blog Affiliates |
![]() Friends?: Twitter - Plurk - StumbleUpon - MyBlogLog - Sphinn - Digg |
|
|||||||
| Blogging Basics Come here to learn the basics of blogging. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
If I insert a graphic in a post in Wordpress I have various alignment choices (top, right, left etc). My problem is with the left and right alignment settings.
When I set these they work as expected but I get a margin problem - there is no gap between image and text. I know this has to be changed in the CSS but I just cannot figure out what class needs to be changed. Can someone please point me in the right direction? Thanks. |
|
||||
|
Thanks, I tried it, WordPress just throws the code regarding the padding away. I then changed the code to <img width="xxx" height="xxx" align="left" style="padding-right: 5px;" ......
This actually works. I just wish I could find a place to do this in the stylesheet so that I do not have to change every entry manually. Thanks so much for steering me in the correct direction. |
|
||||
|
Quote:
.entry img {padding-right: 5px} Note that will effect every image in your post. If you want to apply to different rules to different images (for example if you only want to apply this to the image you put in the upper left corner of your post) then you would do something like this in your stylesheet: .entry img.upperleft {padding-right: 5px;float: left} // added the float for fun Then when you insert your image you would do it like this: HTML Code:
<img class=”upperleft” src=”…” width=”x” height=”y” alt=”The alt text for this image” />
Last edited by johnisfit; 02-18-2008 at 09:09 AM. Reason: Forgot the title, whoops! |
|
||||
|
Thanks guys.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|