in my site's contact us page there is a form. i need to display the address in a div next to the right of the form. the contact form is created using wordpress plugin shortcode in a page. i wrote this in the same page:
<div style="float:left;">
hiii
</div>
my form css is :
width:455px;border-right:1px solid #000;float:left;
but it displays it under the form.i have drawn a border-right for the form so that a vertical partition line will be displayed. what css codes to be used to make the div to the right side of the form?
My advice is not to use either floats or display:inline.
Instead use display:inline:block. Then you can add sizes and margin/padding etc.
Here's an example:
create a outer division and inside that create two division. Insert your contact form in one and your message in another division.
add this CSS
here is your edited fiddle http://jsfiddle.net/2U7RS/
I have got these code from your page using firebug.
you have to remove the commented div that is
after form tag there is a div which style defined clear:both that is why your div bellow the form.Or you can set clear:none.