Here is the URL:
I am trying to make a CSS definition for a nice little right-aligned promobox with fixed width that I could place anywhere on the page.
So far I've made a solution which makes some sort of "promobox", but has two flaws:
- I can only place it in between paragraphs, because it's with <p> tag
- If I add padding definition, somehow all other paragraphs become unwrapped and each paragraph turns into a loooooong single line.
Also, please note, that I only looked at it in IE 5.5. I wonder how it looks in other browsers.
Here is the code:
And here you can see how it looks:
Any help is greatly appreciated! If you are to busy to give a detailed answer, may be you could give me URL with similar promoboxes.
---
---
I am trying to make a CSS definition for a nice little right-aligned promobox with fixed width that I could place anywhere on the page.
So far I've made a solution which makes some sort of "promobox", but has two flaws:
- I can only place it in between paragraphs, because it's with <p> tag
- If I add padding definition, somehow all other paragraphs become unwrapped and each paragraph turns into a loooooong single line.
Also, please note, that I only looked at it in IE 5.5. I wonder how it looks in other browsers.
Here is the code:
Code:
<style>
p.promobox
{
float: right;
background-color: #e9e9e9;
width: 150 pt;
border-top-style: solid;
border-top-color: #c0c0ff;
border-top-width: 1px;
border-bottom-style: solid;
border-bottom-color: #c0c0ff;
border-bottom-width: 1px;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: bold;
}
</style>
And here you can see how it looks:
Any help is greatly appreciated! If you are to busy to give a detailed answer, may be you could give me URL with similar promoboxes.
---
---