css list on Wordpress being defined differently then I want it to for a section, how can I fix it?

I am using wordpress. I have a theme that is overwriting the lists.

So I guess I need to add my own class for lists.

I added a new div tag before I started my lists, but I guess I am still inside the other div tag that the system uses.

So how do I redeclare what I want the lists to do?

I just want them to be normal.

So I can add a custom div to the style.css that the theme calls.

I just don't know what I need to force the css to say.

For example in the css I could do:

.clearList as the name of the new div then define the lists to be normal, but how do I do that?

Then in the HTML I could just do:

<pre><div id="clearList">

<ul style="list-style-type: circle;">
<li>all the HTML</li>
<li>with lists here</li>


Anyone know what I mean and how to do it? thanks, Richard


You want to set the list styles for each div you're using, so you can have various list styles depending on the particular list.

 div.clearlist li { /* some style */ }

as well as that, you might want to style the child elements

 div.clearlist > ul li { /* some style */ }

You can repeat this with other divs, should you wish.

Tags: Css / Wordpress

Similar questions

$ not defined but jQuery IS defined in Wordpress
What might cause Firefox to tell me $ is not defined, but using 'jQuery' works as expected. I'm on Wordpress 3.4 and Wordpress comes packaged with jQuery. Is it something specific to Wordpress?
jQuery not defined in Wordpress Theme even though defined in wp_register_script dependency array
I'm having troubles including gridstack.js into my theme. This is how my code is: And the output is: But Firebug still gives me "TypeError: $ is undefined". I have a solution for this but i don't like it: So my question is: why does the jQuery library included in WP not work for plugins (I have also tried another plugin that uses jQuery.min and I h...
Can't we use strings defined as PHP constants if we want to translate them in a plugin?
I want to translate constant strings in my plugin defined as: define( 'CONSTANT', __( 'string-A', 'textdomain' ) ); And later using it somewhere like: $x= '<h4>'.CONSTANT_NAME.'<h4>'; echo $x; But I am still getting English text even after adding that locale's .mo file & the text-domain. This is happening only for strings defined by...
Uncaught ReferenceError: the_ajax_script is not defined . How is this not defined?
I'm using this example as a guide link to ajax example i'm using to my plugin example. I get Uncaught ReferenceError: the_ajax_script is not defined in the JS console . I've put my JS in the main php file. The PHP that processes a response in a separate php file, as eventually I'm going to replace this simple example with calculations. I don't unde...
Want to display All User DorpDown List in Quick Edit Section in custom post type?
I want to display users dropdown in quick edit section. But i don't know how can i add. Please help me. I have attached image where i need that dropdown.
I can't find where a hook is being defined in a plugin - Easy Digital Downloads
I've been reading the code of the plugin "Easy Digital Downloads" in order to learn more about plugin development techniques. I'm getting crazy because of a hook I can't manage to find where is being defined. Located in: includes/shortcodes.php Line: 918 I know edd_process_profile_editor_updates is the function used to process the profile updates (...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.