Hey,
I'm looking for the code that will let me put quote like boxes on my website,ie grey boxes which text can be appled on but i'm not sure whether it requires an image
Many Thanks

Hey,
I'm looking for the code that will let me put quote like boxes on my website,ie grey boxes which text can be appled on but i'm not sure whether it requires an image
Many Thanks
u mean them annoying website thingys where a window pops up? if so,
and so on......HTML Code:<script> alert ('hi') alert ('this is well annoying innit') </script>
Last edited by beer; 06-01-2007 at 04:07 PM.
He wants the quote box or he would of said "I want a pop up", and yes you would needs an image.
Edit this to be in your CSS file:
.quotebox{
width: 100px;
height: auto;
background: #CCCCCC;
padding: 10px;
outline: #999999 1px dotted;
}
And in your page, where you want it, put
<div class="quotebox">YOUR QUOTED TEXT</div>
That would make a small grey box, with an outline and pading
Put this into your CSS if you want to use an image as the background of your quote (change the "/path/to/image" to the path to the image you want to tile). The border will be 2px thick and black:
or this if you simply want a colour (black in my example, with white 2px border):#quote {
width:500px;
height:auto;
background:url(path/to/image);
outline: #000000 2px;
}
And then to insert it into a page add:#quote {
width:500px;
height:auto;
background: #000000;
outline: #FFFFFF 2px;
}
<div id="quote">THE TEXT YOU WANT TO QUOTE</div>
EDIT: Joe beat me to it![]()
Last edited by timROGERS; 06-01-2007 at 05:40 PM. Reason: Joe beat me to it *cries*
i used to be NintendoNews. visit my blog or add me on twitter.
need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!
"I am the way, the truth, and the life. No one comes to the Father except through me"
John 14:6 (NIV)
hehe![]()
But its not essential.
Want to hide these adverts? Register an account for free!