Skip Navigation

[Resolved] Styling an area in Loop Editor

This support ticket is created 4 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by Pete 4 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#1361249
Top section.png

Hi there,

On this test page for search results: hidden link

I am very rusty using HTML however I have a grasp of the basics and yet struggling with the top section, see pic attached.

I have this in the Loop Editor:

<span class='number-text'>Great, we've found [wpv-items-count] properties that match your search criteria.</span>
<div style = "height:45px;"></div>

Styled with this:
.number-text {
color: #ffffff;
font-family: "Roboto", Sans-serif;
font-size: 20px;
font-weight: 400;
line-height: 1.6em;
margin-left: 15px;
background-color: #626972;
padding-left: 3em;
padding-right: 3em;
padding-top: 1.2em;
padding-bottom: 1.2em;
}

How do I get the background color to extend the length of the grid please?
This of course would need to be responsive which it isn't at the moment. How to I make text slightly smaller and it work on mobile?

I'm basically trying to make this look the same as the SEARCH heading to the left.

Thank you. Pete

#1361287

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi Pete

This is a support forum for questions about Toolset plugins. For general questions about HTML and CSS you should really be asking in places such as Stack Overflow.

In your example above your text is included inside span tags. Spans are inline elements, meaning they don't start a new line and only occupy as much width as their content. Divs are block-level elements, starting a new line and occupying 100% of the containing element width.

So you could make that block full width by either changing your span to a div, or by adding a style rule to the span to set display: block, when it will behave as if it is a block-level element such as a div.

#1361291

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.