Recent Topics

1 Jun 03, 2005 21:40    

Hello!

I've noticed that then inserting an image in a post, and typing in a width or height value, the picture changes to the right proportions automaticly. How does this work? Is it the same for everyone?

Is it something in the css, os has it got something to do width javasvript? The height or width value isn't added in the code, the picture just changes. I don't understand this...

2 Jun 03, 2005 21:49

I'm not sure I understand you. If you don't specify dimensions, then the browser displays it with whatever dimensions the file actually has. It's always a good idea to put the height and width in your image tag, though. If I'm misunderstanding you then maybe you can provide a link to show us what you're talking about.

3 Jun 03, 2005 23:03

The CSS in b2evo resizes the image to fit the content if it's too big.

4 Jun 03, 2005 23:09

Ah, I didn't know that.

Another reason that b2evolution is great.

5 Jun 04, 2005 09:55

The CSS in b2evo resizes the image to fit the content if it's too big.

It depends on skins used, isn't it ?

6 Jun 04, 2005 21:14

Yes... Perhaps it was a little blurry...

If a specify a width dimension, the height dimension changes to make the image look lice, even though I have not specifyed a height value. This has to be done in the css, I find no other answer. what I dont understand is how!

I can shoe you a example... I have tried to explain things there..
http://blog.noshorn.net/index.php/2005/01/31/p109

7 Jun 04, 2005 22:50

Here are some of the stylesheets that are imported. I looked through them, but I'm not finding the code you're seeking. You might try renaming a file, then reloading the page. When you lose the functionality, you'll know you found the right file. Then you can repeat by commenting out lines in the file until you find the right one.

@import url(../../rsc/basic.css); /* Import basic styles */
@import url(../../rsc/img.css); /* Import standard image styles */
@import url(../../rsc/blog_elements.css); /* Import standard blog elements styles */
@import url(../../rsc/forms.css); /* Import default form styles */
@import url(../../rsc/comments.css); /* Import default comment styles */

I'd be more concerned about your trackback spam problem. [url=http://forums.b2evolution.net/viewtopic.php?t=3764&highlight=whoo+antispam]This might help.[/url]

8 Jun 05, 2005 01:49

Guys, this has got nothing to do with css, js or even this blog-system at all. I've discoverd that this is something that the browser does.. duh. It's a function I did not know existed... odd... Try this on your own servers:

<html>
<body>
<p>
		
<p><img src="http://daniel.noshorn.net/bilder/flower_start.jpg" alt="" title="" /></p>
	<p><img src="http://daniel.noshorn.net/bilder/flower_start.jpg" alt="" title="" width="70" />
</p>
</body>
</html>

You'll notice that the second image alters its height automaticly. Weird. Extremly good though. Seems to work fine in firefox and IE 6.something... As I said, weird. I feel stupid. :oops:

9 Jun 05, 2005 03:22

slamp wrote:

The CSS in b2evo resizes the image to fit the content if it's too big.

It depends on skins used, isn't it ?

True, I've been messing around so much with the different css-files so I've lost track of it.

I have max-width: 100% for for he img-tag which makes every image fit to my design automatically if it's larger than the width of the bPost-div.


Form is loading...