This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes CSS Alignment Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "CSS Alignment Doubt" Watch "CSS Alignment Doubt" New topic
Author

CSS Alignment Doubt

yaswanth kumar
Greenhorn

Joined: Nov 08, 2012
Posts: 1
hello friends, i have some problem in div alignments

Guys here is my problem.
<div align='center' style='text-align:center;width:100%'>

<div style='float:left;width:200px'></div>
<div style='float:left;width:200px'></div>
<div style='float:left;width:300px'></div>
<div style='float:left;width:400px'></div>
<div style='float:left;width:900px'></div>

</div>

I need the output as

The first three inner divs will be shown in first row and be in center of main div
the next div having 400px width is in second row
the remaining 900px div in 3rd row.
The second row will be center of second row.

I think you guys got my question
can you please reply fast. I am a programmer not a designer.
Thanks in advance

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56197
    
  13

yaswanth kumar wrote:I think you guys got my question

Nope. What's the question?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: CSS Alignment Doubt
 
Similar Threads
Float problem
Datatable with scrollbar in JSF
float property is not working properly
HTML/CSS: Div doesn't expand to hold floated elements
exchanging values from right to left on button click