11
brash
Re: CSS problem, borders around pictures
  • 2004/12/2 11:13

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


falke, just check all the other images not in your article to make sure that the margin hasn't been applied to them as well.

12
falke
Re: CSS problem, borders around pictures
  • 2004/12/2 11:15

  • falke

  • Friend of XOOPS

  • Posts: 158

  • Since: 2004/4/25


Brash, can you explain this a bit further?
regards/falke

13
JasonMR
Re: CSS problem, borders around pictures
  • 2004/12/2 11:17

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


No worries, by the way I like that link collection very much

edited: my link had a typo and I was far to slow with posting, so I just deleted it

What brash means is, you assigned the style to ALL image tags. BUT, styles are cascading, so most images used by themes, should have their own settings, which would override the overall setting.

To make sure, the setting doesn't screw up somewhere, make sure nothing has started to look "unusuall", as in, not as it looked before, and not appropriate. I hadn't noticed anything, but I only took a quick look.

Updated my edit

14
brash
Re: CSS problem, borders around pictures
  • 2004/12/2 11:27

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Quote:

falke wrote:
Brash, can you explain this a bit further?
regards/falke


using the img element like this is global, so all images on your site will now have this margin (even in XOOPS admin). This can throw image alignment out, and if your theme is image dependent can make things look messy.

The articles where you are specifically wanting these margins applied use the .itemBody element in your theme. You can set a padding/margin value for this, however it is applied as a whole, not just on images in the .itemBody element.

As I said I am no CSS guru, but what I think really needs to be done is to apply an img margin value that is only applied to the .itemBody element, and not as a global. Does that make sense?

*EDIT*

What Jason said

15
JasonMR
Re: CSS problem, borders around pictures
  • 2004/12/2 11:31

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


And if you should see problems, delete previous changes and add this line instead:

div#content img {margin: 5px; padding: 5px;}


Then the change will only apply to images in the content body.

Thanks brash, for making me feel guilty

16
brash
Re: CSS problem, borders around pictures
  • 2004/12/2 11:36

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Thank you for saying what I was thnking . Knew what had to be done, just didn't know how to get there .

17
falke
Re: CSS problem, borders around pictures
  • 2004/12/2 11:37

  • falke

  • Friend of XOOPS

  • Posts: 158

  • Since: 2004/4/25


Jason, English is obviously not my native language......

Can you please explain this line:

[i]edited: typo and far to slow

Do you mean there are lots of typing errors and that the site are to slow for you?

regards/falke

18
JasonMR
Re: CSS problem, borders around pictures
  • 2004/12/2 11:42

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


By the way, the "itemBody" class is used in the News mod, but not in the Links mod, so wouldn't work with the given example.

The problem with my given solution is, it will also appy to section logos, if they have no specific setting for their img tags set. This said, i believe it is the simplest solution to apply the style to the content, and change the margins in the template for other images, if needed.

19
JasonMR
Re: CSS problem, borders around pictures
  • 2004/12/2 11:44

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


LOL: sorry mate, I edited that line out, as I had provided the same link as m0nty, only that I had also made a typo, and was too slow, so that m0nty's post was up before mine.

Just a missunderstanding

20
brash
Re: CSS problem, borders around pictures
  • 2004/12/2 11:44

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


*EDIT* DAmn I type slow .Jason had posted twice in the time I have done so once

Hey Jason, is there anyway to make sure that the div#content is applied to block content as well?

Login

Who's Online

138 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits