Jump to content
Willem-Siebe Spoelstra

Inline styles problem

Recommended Posts

Willem-Siebe Spoelstra    0
Willem-Siebe Spoelstra
<div class="blocks box-media-pad" style="min-height: 235px;">

Hi Adam, the above is part of the HTML for the anything boxes. Why is here an inline style? I causes empty space in my boxes and I don't see the point from this min-height.

I have the anything boxes with one image on the left and only one box per row. The height of the div shouldn't be influenced by an inline style I was thinking.

 

Also there is an other rule.

<div class="abboxgraphic img " style="width: 22%; max-width:680px">

Last time I spoke with you via e-mail about this problem. Because the width (22%) is set with an inline style, I cant get my image as big as i would like to have it.

 

Can you maybe add classes in your coding instead of inline style so we can override this with our own CSS?

 

Hope to hear from you.

 

Kind regards,

 

Willem


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

I can't write options that transfer directly over to a css file so this is how the output/style can get modified based on the options from the theme. Definitely will move to add some custom less actions, but this is less of a priority at the moment. I hate inline styles, but in a cms you are always going to come across a couple here and there.

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

with that said you don't need to override with your own css here because it's controlled by an option in the section.

Share this post


Link to post
Share on other sites
Willem-Siebe Spoelstra    0
Willem-Siebe Spoelstra

Hi Adam, on all the other post I liked and marked your answers as solved. Don't think all 'thank you' replys will benefit the discussion there, but I'm really thankfull for making the changes that quick!

 

The reason why I do respond here, is that I don't fully understand what you are saying, probably because my lack of english knowledge.

 

What I (think) I see with plugins from for example Jetpack, the sharebar plugin, it loads all CSS but I can overwrite it in my own CSS/LESS file inside my pagelines theme (being more specific).

 

I don't understand what you are saying with:

 

 

 

I can't write options that transfer directly over to a css file

 

As far as my knowledge from CSS/LESS goes I can't use the 'abboxgraphic img' class to overwrite the inline style width = 22%, what means that I'm always limited in how big the image will be.

 

I hope I managed to explain myself a little bit better, I hope you want me to explain it one more time also ;-).

 

Kind regards,

 

Willem


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

You actually can overwrite it with your own css but you need to use the !important tag like so :

.abboxgraphic img {
width: 22%!important;
}
  • Like 1

Share this post


Link to post
Share on other sites
Willem-Siebe Spoelstra    0
Willem-Siebe Spoelstra

Awesome, thanx for this lesson ;-).


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • janpeeters
      By janpeeters+
      Hi,
       
      I know Pagelines is not the developer of Anything Boxes but since you operate the store I wanted to ask the following question.
       
      Anything Boxes isn't officially updated for DMS yet but shows up in the store on one site I'm buidling: http://www.lovo.nu (http://cl.ly/image/2u0I1i3q1v1H). In another site (http://www.janpeeters.nl) that's on the same Pro version of DMS, Anything Boxes isn't visible. I'm hoping someone can shed a light on this erratic behaviour. I'd love to use Anything Boxes (that I bought) on both sites. 
      I read somewhere on the forum about Wordpress SEO being a problem for disappearing sections, but deactivated that didn't bring it back on my site.
       
      Thanks, Jan
    • janpeeters
      By janpeeters+
      Hi,
       
      Yesterday I recreated my website in DMS (from Framework 2) This worked quite smooth (half a days work with base child theme). There were some usability 'problems' that I will report later on.
       
      I used the section Anything-Boxes which I bought a while ago for Framework. It showed up in my DMS sections a few days ago so I could recreate my site. But last night it disappeared again. From my sections and from the store. So hopefully someone knows how to get it back. I'm using Flipper in the meantime, but the multirow anything-boxes works better for me.
       
      Thanks, Jan
    • Sourena
      By Sourena
      Is it possible to state an offset for query_posts in "Anything Boxes"?
      I need to show the latest post on the top in a Feature and the rest of the posts in Anything Boxes. Could you please show me how I can do that, or if it is possible could you you add this in the setting?
    • Willem-Siebe Spoelstra
      By Willem-Siebe Spoelstra
      Hi Adam,   Here our conversation by e-mail about allowing tags for the excerpt. I'll post it again here as a feature request since I did not see it being implemented.   Kind regards,   Willem    
    • Willem-Siebe Spoelstra
      By Willem-Siebe Spoelstra
      <img src="http://oudisnieuw.net.websrv.makeweb.nl/images/cafestoel-volendam-225x300.jpg" alt="Cafestoelen" style="max-width: 100%"> Hi Adam, in the above code you see that in your coding the image gets the ALT tag from the pagetitle. However, it is possible to give an alt text with every image in WP. 
      My preference would be that the alt tag is from the image, or that we can manage this inside your plugin.
       
      Can you change this (important for SEO).
       
      Kind regards,
       
      Willem
       
×