ASP.net Panel with label on one side and image on another

Murray Brown
Murray Brown used Ask the Experts™
on
Hi

In ASP.net I have a panel that I want to show a label in on the far left and then an image on the far right.
What is the best way to do this so that no matter what size the screen the label floats to the left and the image to the right
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Developer User Interface
Commented:
You will have to put each one in a div of it’s own.

<div align=“left”>
ur label control
</div>

<div align=“right”>
ur image
</div>

Open in new window

Hi
You can use CSS.
Use float property for the same.
For left side object, use:
float: left;
and for right side object use:
float: right;

Reference:
https://css-tricks.com/all-about-floats/
Murray BrownASP.net/VSTO Developer

Author

Commented:
thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial