Organizes div-element - html

I have a question about how to organize my div elements.
I have drawn a picture, where you can see a phone and four texts. Here is what I want: http://i61.tinypic.com/14spc2c.jpg
But when I'm trying to code it, I end up with this: http://i57.tinypic.com/2i0cgzk.png
I have searched all over the web, but I can't find any solution. I'm awere of using "margin" but with any resolution that do not fit mine, it will look weird.
Can anyone help me? :)

Encapsulate the texts in divs and then use float css property.

Related

How to divide bootstrap body into floating containers

I'm trying to divide the body of my webpage into different text parts, i.e. rectangles that would be separated and kinda float on the background. A good example would be a following website: http://www.index.hr/.
How can I achieve this?
Thanks in advance!
Stack Overflow is not a code making service, and writing the code from scratch is not encouraged. Have you done any research as to how you would approach this problem? I will not give out the entire code, but I will tell you to research <div> HTML elements and CSS position, float and clear properties.

Position three lists horizontal (side by side) in HTML5

I have 3 lists I want to position side by side in html5. What is the best way to do this. I have tried using float and text align in css it just wont work for me. I have been looking at the W3schools tutorials and have looked on here but can't find anything related to lists. I can post the code if needed.
http://pastebin.com/gC6KGaFL Here is the code for the webpage its an assignment for college.
Here is the css http://pastebin.com/xrm8QqeS
It is better to put your list in div and position them (divs) inline-block.
Here is the JS fiddle, If I am right.
enter code herehttp://jsfiddle.net/dhustlerz/cpp6n4sa/

Right justification of div using CSS

The Image attached is what i am trying to accomplish!
Now here is my codePen example: http://codepen.io/anon/pen/leEdg
I cannot change the placement of the circle cause that is being animated on a path and has to stay where it is. What i want to do is be able to move the .stepInfo over to justify it correctly. Now the text that comes after the little line ball guy is dynamic and will be a variable size. So fixed width might not be the right answer.
Any help will be GREATLY appreciative! Thanks in advance!!!
So here is what I think will work out for you! I floated the text to the right, but that is only a minute problem to other things. Going through your code, I found 'pt' instead of 'px' which is fine but just stay consistent going through. Another thing, if you adjust the padding of the step label, it will adjust the positioning. So in a new, revised codpen, I did that for you :) If you have ANY questions, just leave a comment and I can try to help explain as much as possible.

How do I display multiple images onto one images in HTML

I want to use HTML and display one large image.
On this large image I then wish to display multiple smaller images, all on different places and sizes.
I would prefer doing this using HTML only.
But, if this is not possible, Javascript or something like that is also an option... :-)
If anybody has any idea using PHP, that would also be great.
I have search the web and StackOverflow, and tried MANY possible solutions, but none of them allowed me to display one big image, and then display multiple other images on top of this big image.
Any help would be greatly appreciated.
Kind regards,
Michael
you can use a container div which will contain all the smaller images. You can set background of that particular div.
your html as
<div id="container">
</div>
and css as follows:
div#container{
background-image: url("image.jpg");
background-repeat:no-repeat;
height:100%;
}
Two alternatives:
defining the big image in as background using CSS, then you can put onto it whatever html markup you want to. Such backgorund can also be declared for elements like divs, not only for the whole page.
use absolut positioning inside your style definition. That way you can add big and small images to your markup and then position them on top of each other.
No javascript required for this and php has nothing to do with this.
You can position them as I have done in this JSFiddle: http://jsfiddle.net/xxUpk/
The top:-NNNpx is crude, you could use float and many other ways of positioning them. Also look into z-index to layer them.
you cannot overlay an image over another image in pure HTML only, but what you CAN do is re-locate a image's position onto another tag and just move it accordingly with css.

How to have text wrap around an image?

What's the best approach to achieve the following effect?
[Image Removed by Poster]
I need that text to wrap around the image, which should always be in the bottom right corner. Thanks.
you will not succeed on this with pure html/css but if javascript is an option for you might want to have a look at
http://code.google.com/p/jqslickwrap/
http://www.webappers.com/2008/01/10/css-text-wrapper-makes-hthml-text-wrap-in-shapes/
Unfortunately you won't be able to get text to wrap around an image like in publishing software and your example above. What you can do is set the image to float to the right or align to the right and assign margin left to it which will pad the text off of it.
Live example here: http://jsfiddle.net/2bjn3/
Actually is is possible if you're not opposed to non-semantic markup. Take a look at this working example:
http://jsfiddle.net/chprpipr/Zhz2v/
If you set the background image of the container to contain your portrait image, you can get pretty close to what you're looking for.
Sorry. HTML and CSS has some limitations. This cannot be achieved with CSS or HTML.