Solved

Formatting Div in a jQuery UI Accordian

Posted on 2016-07-22
2
42 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
Comment Utility
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
Comment Utility
Very nice - thanks!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now