Closed (fixed)
Project:
Display Suite
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2011 at 20:55 UTC
Updated:
16 Apr 2012 at 17:11 UTC
I have created a field style called right1 which I use to put this css code on certain fields:
div.right1 {
padding-left: 15px;
}This works fin as long as the field doesn't has a label displayed (inline or above). If the field has a label the custom style seems to be ignored.
My fault, bug or something else?
| Comment | File | Size | Author |
|---|---|---|---|
| working without label.PNG | 12.06 KB | dddave | |
| broken by label.PNG | 14 KB | dddave |
Comments
Comment #1
pfrenssenCan you please post the HTML that is generated by Display Suite in both cases? That would be more helpful than those screenshots. This might be a mistake in your CSS file.
Comment #2
dddave commentedSorry for not getting back to this earlier. You can visit this issue live at http://www.fromwaydowntown.de/content/paris-revisited
On the right hand the first pic gets a nice padding applied as should the slideshow. Am I using the field display option wrongly or did I misunderstand the CSS to be applied?
Comment #3
dddave commentedHmm. I am currently playing around with various themes and the problem might in fact be related to the themes in use. I remember that the problem existed on adaptive themes and Bartik.
Let's see what comes out of this jurney...
Comment #4
pfrenssenI see that in one case the
right1class is applied to a<div>element, while in the other case it is applied to a<section>element. This is probably because you are using an HTML5 theme. You could fix this by finding the theme function that is responsible for generating the<section>element and overriding this (see Overriding themable output), but the easiest solution would be to use this CSS:Comment #5
dddave commentedThanks a million. That did the trick.