Overclock.net banner
1 - 14 of 14 Posts

Speedster159

· Questionnaire galore!
Joined
·
11,378 Posts
Discussion starter · #1 ·
So how do i put pictures side by side using HTML?

Here is the picture of it.
467

And the code i use.

Code:

Code:
[URL=http://www.something.com/en/blog/3436662/some-blog/follow][IMG alt="bloglovin"]http://www.something.com/widget/bilder/fashionchalet.gif[/IMG][/URL]

[URL=][IMG alt="Good Blog Entry"]http://www.someting.com/wp-content/uploads/2011/11/150x150_Text_Entry_11.png[/IMG][/URL]
I'm using this on a text widget on wordpress to put it on my sidebar.
 
Discussion starter · #3 ·
Quote:
Originally Posted by kz26 View Post

You'll need to float the first image to the left.

Code:

Code:
img {
    float: left;
}
Looks like thats CSS and not HTML. Made a google search and found the HTML one.

Code:

Code:
[URL=http://www.bloglovin.com/en/blog/3436662/single-mom-super-mom/follow][IMG alt="bloglovin"]http://www.bloglovin.com/widget/bilder/fashionchalet.gif[/IMG][/URL]
[URL=][IMG alt="Good Blog Entry"]http://www.goodblogaward.com/wp-content/uploads/2011/11/150x150_Text_Entry_11.png[/IMG][/URL]
Works on the realtime editor but not in practice.

Did i do that right?
 
Quote:
Originally Posted by Speedster159 View Post

Looks like thats CSS and not HTML. Made a google search and found the HTML one.

Code:

Code:
[URL=http://www.bloglovin.com/en/blog/3436662/single-mom-super-mom/follow][IMG alt="bloglovin"]http://www.bloglovin.com/widget/bilder/fashionchalet.gif[/IMG][/URL]
[URL=][IMG alt="Good Blog Entry"]http://www.goodblogaward.com/wp-content/uploads/2011/11/150x150_Text_Entry_11.png[/IMG][/URL]
Works on the realtime editor but not in practice.
Did i do that right?
You may need CSS. Your code probably works in the realtime editor because the editor is defining the css class "floatLeft" for you. If you don't don't define the class it won't do anything.

You can use float or "display: inline" to display the elements side by side.
 
wrap those pictures in span tags, that should work:

Code:

Code:
[URL=http://www.something.com/en/blog/3436662/some-blog/follow][IMG alt="bloglovin"]http://www.something.com/widget/bilder/fashionchalet.gif[/IMG][/URL]

[URL=][IMG alt="Good Blog Entry"]http://www.someting.com/wp-content/uploads/2011/11/150x150_Text_Entry_11.png[/IMG][/URL]
 
Discussion starter · #6 ·
Quote:
Originally Posted by d3viliz3d View Post

wrap those pictures in span tags, that should work:

Code:

Code:
[URL=http://www.something.com/en/blog/3436662/some-blog/follow][IMG alt="bloglovin"]http://www.something.com/widget/bilder/fashionchalet.gif[/IMG][/URL]
[URL=][IMG alt="Good Blog Entry"]http://www.someting.com/wp-content/uploads/2011/11/150x150_Text_Entry_11.png[/IMG][/URL]
Just used the code you indicated, but it still the same.
 
HTML is not for styling, use CSS for that.

For example add a stle tag to both of the images one of

style="float:left"
the other
style="float:right"
 
Discussion starter · #8 ·
Still can't make it work... :|
 
Discussion starter · #10 ·
Quote:
Originally Posted by MakubeX View Post

I guess we'll need to see the entire code to be able to help, because you should've even need CSS to just put two anchor elements with image elements side by side.
It's on post 1.
 
1 - 14 of 14 Posts