DotDragnet
May 24, 2012, 04:09:01 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: follow us on twitter @dotdragnet
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Images in Wordpress  (Read 344 times)
Barney McGrew
Sr. Member
****
Posts: 257


Resident Firefighter


View Profile WWW Awards
« on: April 12, 2011, 12:06:57 AM »

In my ongoing learning curve with WP, I am playing with different themes and getting better at making them more functional. However, I have come across a bit of a stumbling block which is slowing me down. On many of my pages, I have an image in the top right corner, just to break the page up and also give some indication as to the page content and relevance.

On my current theme, the page background is white which causes no issues with my pictures etc as it appear that most that I bought have white backgrounds. I now have a background which is a different colour (greyish) which now makes the images stand out. Now I am no no expert on fixing this but believe I will either have to change them all to the same background or make them transparent, neither of which I have any experience in.

Can anyone offer any suggestions as to how I can make this process easier. I realise I could change the CSS of the new theme to make the page background white which would solve it, but there would be too much white then, the grey actually works.

Alternatively, how hard would it be for some CSS to be put together that would add a nice border to the images by the use of a shortcode etc?

Any help as usual would be appreciated.
Logged
Rosco
Global Moderator
Hero Member
*****
Posts: 917



View Profile Awards
« Reply #1 on: April 12, 2011, 12:21:34 AM »

Code:

#post img {
 border: 1px solid #f00;
 }


(where #post is the element/div that contains the image)

?
Logged
Barney McGrew
Sr. Member
****
Posts: 257


Resident Firefighter


View Profile WWW Awards
« Reply #2 on: April 12, 2011, 09:30:57 PM »

Cheers Rosco. Not sure hat I do with that. I presume I add it tot he style sheet ? My current theme just allows me to add the [image_right] and it adds it all with a nice looking border. If only everything was so simple. I looked into copying across the shortcode but that appears to be an absolute nightmare wink
Logged
Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2267



ap4a.uk ap4a
View Profile WWW Awards
« Reply #3 on: April 12, 2011, 09:33:34 PM »

Link? (To an example image showing what you want.)
Logged

suedenem
Sr. Member
****
Posts: 410



View Profile Awards
« Reply #4 on: April 13, 2011, 12:47:01 PM »

Cheers Rosco. Not sure hat I do with that. I presume I add it tot he style sheet ? My current theme just allows me to add the [image_right] and it adds it all with a nice looking border. If only everything was so simple. I looked into copying across the shortcode but that appears to be an absolute nightmare wink

Yes, add it to your stylesheet.

Try

Code:
.page img { border: 1px solid #f00; }

as most of your pages are, umm, pages.
Logged

So this SEO copywriter walks into a bar, grill, pub, public house, Irish bar, bartender, drinks, beer, wine, liquor...

Beware my weird, cross-dressing comment's; they are pretty standard examples of trolling.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!