1
gsasha
Problem Fixed
  • 2004/5/25 13:12

  • gsasha

  • Just popping in

  • Posts: 4

  • Since: 2004/5/23


Oh, right! I've found the reason for the problem.

I ran the page through a CSS validator (http://jigsaw.w3.org/css-validator), and it complained about margin etc. parameters that did not include dimensions.

My mistake was to assume that no dimensions should implicitly be interpreted as pixels, but apparently I was wrong. After adding "px" to the dimensions, everything is OK.

Ah, and now the CSS validator also complained about several "margin" commands in the xoops' default.css, which I think should be fixed as they are most certainly ignored by most browsers.



2
gsasha
Re: Problem with CSS formatting - margin ignored
  • 2004/5/25 12:57

  • gsasha

  • Just popping in

  • Posts: 4

  • Since: 2004/5/23


Right. I'm talking about the image that currently appears in the first news item on the front page ofhttp://gontmakher.com.

The point is, I *don't* want to show a visible border. I want to have an invisible border around the image, for which any of margin, padding or transparent border would do.

My problem is, the browser for some reason ignores the margin, padding and border properties (I tried IE, Mozilla and FireFox).

I checked the final HTML and CSS generated by XOOPS, and to my understanding, the border (both of margin, padding and border) should be there. But it isn't. However, there is a suspicious "border: 0" in one of the CSS's. I thought it might be the reason of the problem and that's why I'm asking for help here.

Now, I don't see why I should change the template - there could be multiple solutions, but first, there is a problem with the generated HTML/CSS content that I don't understand.

And all in all, it seems to me rather backward changing the image to make a border (and what if I later decide it to be 6 rather than 5 pixels wide...).

Hope I succeeded to explain myself better.
Thanks again,
Alex



3
gsasha
Re: Problem with CSS formatting - margin ignored
  • 2004/5/23 11:34

  • gsasha

  • Just popping in

  • Posts: 4

  • Since: 2004/5/23


Well, that's strange. I'll explain why.

The "style=" string in my page does work for some attributes (for example, it does react to float=right, and, strangely enough, to border=groove. Seems the only thing it ignores is "border=", "margin=", "padding=" and such).

I don't quite understand why it would work if I added the "padding" attribute in div.

<b>Or am I speaking complete BS?</b>

Thanks,
Alex



4
gsasha
Problem with CSS formatting - margin ignored
  • 2004/5/23 10:36

  • gsasha

  • Just popping in

  • Posts: 4

  • Since: 2004/5/23


I have just installed an XOOPS site, and I'm trying to do a seemingly simple thing: create a border around an image.

I tried "img border=", "img margin=", "img style="border:", "img style="margin", and finally "span margin=". Nothing helps - the border just doesn't show. Looks like it conflicts with some CSSs set by XOOPS.

The site is athttp://gontmakher.com. There is an image on the front page, with no border ;(.

Thanks for any help,
Alex




TopTop



Login

Who's Online

136 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 136


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