Solved

Formatting Div in a jQuery UI Accordian

Posted on 2016-07-22
2
63 Views
Last Modified: 2016-07-22
I have the following code meant for mobile devices: codepen

What's the best way to get the contents of the accordion drop-down to display like:
Open: 17Jul16
Type:  Critical
Responsible: M. Williamson
Description: ...

with right-aligning the first column (the headers), and left-aligning the second column (the values) so everything looks pretty?

Any help is appreciated! I'm relatively new to CSS.

Thanks,

Michael
0
Comment
Question by:Michael Vasilevsky
2 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 41725536
add to your css
.header{
  float:left;
  margin-right:10px;
}
.header::after{
  content:":"
}

Open in new window

http://codepen.io/anon/pen/dXZoxo
0
 
LVL 10

Author Comment

by:Michael Vasilevsky
ID: 41725538
Very nice - thanks!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question