![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
||||||XXXXXXXXXXXXXXXXX ||||||XXXXXXXXXXXXXXXXX _____________________________ |
|
= blank space |
#2
| |||
| |||
|
|
What is the best way to set up a "Note block" on a web page with CSS. This should consist of a colored box that contains an image on the left, and left-justified text floating to the right. Example: _____________________________ IMAGE |XXXXXXXXXXXXXXXXX |||||||XXXXXXXXXXXXXXXXX |||||||XXXXXXXXXXXXXXXXX _____________________________ | = blank space |
|
weblog | http://www.pretletters.net/weblog/weblog.html | webontwerp | http://www.pretletters.net/html/webontwerp.html | zweefvliegen | http://www.pretletters.net/html/vliegen.html | |
#3
| |||
| |||
|
|
_____________________________ IMAGE |XXXXXXXXXXXXXXXXX |||||||XXXXXXXXXXXXXXXXX |||||||XXXXXXXXXXXXXXXXX _____________________________ | = blank space Um, just text and an image? Put both in <div>, float image left. |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Thanks to all who replied for your help. I think I have something that works now. Please let me know of any potential downsides to this method. One problem I am still dealing with is that the text has to create enough lines to display the entire image. style type="text/css" title="Stylesheet" media="all" #note { background-image: url(note.gif); background-color: yellow; background-repeat: no-repeat; margin-bottom: 10px; margin-top: 20px; padding-left: 105px; } .noteText { color: blue; } /style div id=note><p class=noteText>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text</span></p |
![]() |
| Thread Tools | |
| Display Modes | |
| |