Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

div woes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rodchar - 30 Nov 2007 19:06 GMT
hey all,
i have 4 divs on my page and i'm trying to use css to lay them out. i'd like
to have div1 and div2 side-by-side and div3 and div4 side-by-side.

is there a way to do this thru css?

thanks,
rodchar
Milosz Skalecki [MCAD] - 30 Nov 2007 23:08 GMT
Howdy,

<div style="clear: both; width: 200px">
    <div style="float: left">div1</div>
    <div style="float: right">div2</div>
</div>
<div style="clear: both; width: 200px">
    <div style="float: left">div3</div>
    <div style="float: right">div4</div>
</div>

You should be fine from this point.
Signature

Milosz

> hey all,
> i have 4 divs on my page and i'm trying to use css to lay them out. i'd like
[quoted text clipped - 4 lines]
> thanks,
> rodchar
John Timney (MVP) - 01 Dec 2007 00:25 GMT
You just need to learn a little about DIV and CSS based tables

Lots of example around - just check the source of some of them  like this
one.....
http://www.dev-archive.net/articles/table-in-css.html#Tbl1

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

> hey all,
> i have 4 divs on my page and i'm trying to use css to lay them out. i'd
[quoted text clipped - 5 lines]
> thanks,
> rodchar
rodchar - 04 Dec 2007 14:11 GMT
thank you everyone for the help.
rod.

> hey all,
> i have 4 divs on my page and i'm trying to use css to lay them out. i'd like
[quoted text clipped - 4 lines]
> thanks,
> rodchar

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.