![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi! On my website (http://michaelsremarks.blogspot.com) I use a so called flickr-badge. That is some sourcecode that takes a picture out of my flickr-gallery and puts it onto my website. Now I would like the picture to have a border with a 3px (or so) padding all around. The problems are: a. If I do not input a fixed-width, like now 100px, the image is on another position. |
|
b. If the picture is not landscape-format (which is rather often), I have more than 3px padding on the right side of the picture! |
|
Just reload the homepage a few times and you see, what I mean. Is there a solution for this problem? |
#3
| |||
| |||
|
|
What do you want? |
#4
| |||
| |||
|
|
div style="padding:2px;margin:0 45px 0 0;border:solid silver 1px;width:100px" script type="text/javascript" src="http://www.flickr.com/badge_code.gne?nsid=65039038@N00&count=1&d isplay=random&name=0&size=thumb&raw=1" ></script /div Now the problem is that this picture not always is 100px wide. It also can be only, say, 60px wide, but the CSS always produces a 100px-wide box, no matter weather the picture is or is not 100px wide. My question is: How do I have to change the code, so that it works also with pictures that have another width than 100px? |
#5
| ||||
| ||||
|
|
Lauri Raittila <lauri (AT) raittila (DOT) cjb.net> wrote in message news: What do you want? The picture on the sidebar, beneath "Aktuelles Bild" is "produced" by this code: |
|
script type="text/javascript" src="http://www.flickr.com/badge_code.gne?nsid=65039038@N00&count=1&d isplay=random&name=0&size=thumb&raw=1" ></script /div |
|
Now the problem is that this picture not always is 100px wide. It also can be only, say, 60px wide, but the CSS always produces a 100px-wide box, no matter weather the picture is or is not 100px wide. |
|
My question is: How do I have to change the code, so that it works also with pictures that have another width than 100px? |
#6
| |||
| |||
|
|
in comp.infosystems.www.authoring.stylesheets, Michael Kalina wrote: Lauri Raittila <lauri (AT) raittila (DOT) cjb.net> wrote in message news: div class="foobar" script type="text/javascript" src="http://www.flickr.com/badge_code.gne?nsid=65039038@N00&count=1&d isplay=random&name=0&size=thumb&raw=1" ></script /div I don't understand at all why are you using that script. I bet you don't understand the script either. Using some simple server side code would be much better. What is that script supposed to do? Why are you using it? Why it is mostly bullshit? Where did you get it? Have you noticed, that your code is horrible to look at? |
#7
| |||||||
| |||||||
|
|
Lauri Raittila <lauri (AT) raittila (DOT) cjb.net> wrote in comp.infosystems.www.authoring.stylesheets, Michael Kalina wrote: Lauri Raittila <lauri (AT) raittila (DOT) cjb.net> wrote in message news: div class="foobar" script type="text/javascript" src="http://www.flickr.com/badge_code.gne?nsid=65039038@N00&count=1&d isplay=random&name=0&size=thumb&raw=1" ></script /div I don't understand at all why are you using that script. I bet you don't understand the script either. Using some simple server side code would be much better. What is that script supposed to do? Why are you using it? Why it is mostly bullshit? Where did you get it? Have you noticed, that your code is horrible to look at? Dear Lauri! Sorry that my code offends your eyes, |
|
sorry that I, somebody who tries to produce validating code, ask such questions in such an elite-group, where somebody who is not a specialist in stylesheets seems not to be welcome. |
|
Yes, I have no clue what this javascript does, yes, I do not understand it. It's a code I got from the flickr-service (http://flickr.com) to show some random image of my pictures on my homepage, which is also taken from blogger (http://blogger.com) and which's code is written by Dan Cederholm (http://www.simplebits.com/), who seems to be a specialist in this... |
|
Of course, it would be more easy for me to just input the code I got from flickr, let the thing be working and that's it. A lot of people I know are doing this. |
|
But what happens? Reading answers that express nothing else than "What do you want, go away, let us alone?!!!" |
|
(especially from you!) |
|
is not funny, not useful and for somebody who really has no clue of professional coding, it's disappointing. |
#8
| |||
| |||
|
|
in comp.infosystems.www.authoring.stylesheets, Michael Kalina wrote: Lauri Raittila <lauri (AT) raittila (DOT) cjb.net> wrote I have given you 3 different way to do what I think you want. You have not understood any of them. So instead actually asking why none of them work, you īgive me bullshit about me mentioning your invalid code generated by script you don't understand. |
#9
| |||
| |||
|
|
"Bullshit" seems to be the word that suits your needs. However, in the meantime I got a solution for what I need. Thanks to Steve Pugh. |
![]() |
| Thread Tools | |
| Display Modes | |
| |