I am struggling with the following situation. It is hard for me to describe it the right way, so I have created an example in Photoshop to illustrate the situation.
Please visit the following link: http://websitedelivery.nl/files/example.png
Some explanation: I am working on a website which uses images as the website’s background. Now I need to create two content areas, a large one and a smaller one that will only be shown at the top right, both containing text. The thing is that the text from the large content block needs to continue during the whole content block (partially at the top and the full width at the bottom).
Anyone got a clue how to achieve this with just HTML and CSS?
Thanks in advance!
Edit: I see many of you use a border around the top right block, but unfortunately that won’t do it. It needs to show the background-image of the page. I have updated my image so that you can see what I mean: http://websitedelivery.nl/files/example1.png
4
Answers
You could make a div, and make the little block inside it float to the right. The content in the parent will wrap around it.
HTML:
CSS:
DEMO
Adjust it to your needs.
[EDIT]
Improved version, with also rounded border in the small box: clickerdecklick.
Here’s one approach:
JSFiddle: http://jsfiddle.net/S6tSL/
Basic structure:
CSS:
Hopefully that should get you started.
While editing the fiddle, many other answers have been appeared,
but I will also share my own :),
while others have also good answers,
hope this help
http://jsfiddle.net/hY9w3/3/
Just for reference:
on the basis of posted image I’ve made a Demo. You many CHECK the DEMO FIRST.
CSS Code is here
HTML Code is like this