I have set up a Drupal 7 view to showcase some user fields, opting for an unformatted list layout. However, I am unsatisfied with the current appearance.
My goal is to arrange the field labels ("Name," "Age," and "Country") and their corresponding values ("Jeroen," "19," and "Belgium") in my view within two outlined columns on the left side.
While I know how to eliminate the colons, I am unsure about how to properly separate the field labels from the values. Is there a way to achieve this?
Edit: After following Ajay's suggestion, I now have the code snippet below:
<div>
<div class = "user-label">Name</div>
<div class ="user-value">[field_name]</div>
</div>
<div>
<div class = "user-label">Age</div>
<div class ="user-value">[field_age]</div>
</div>
<div>
<div class = "user-label">Country</div>
<div class ="user-value">[field_country]</div>
</div>
This is the styling applied:
.user-label{
float:left;
font-weight: bold;
}
.user-value{
float:left;
margin-left: 20px;
}
Despite these adjustments, the layout is not visually appealing. How can I align the values neatly into two columns?