This simple patch adds a div around the entire block, so that styling can be done directly through CSS rather than programmatically.

CommentFileSizeAuthor
advpoll_block_container.patch725 bytesAnonymous (not verified)

Comments

Anonymous’s picture

Status: Reviewed & tested by the community » Active
Anonymous’s picture

Status: Active » Needs work
anders.fajerson’s picture

The current HTML output looks like this:

<div id="block-advpoll-latest_poll" class="clear-block block block-advpoll">
<h2>Latest poll</h2>
  <div class="content">
  <h3>Question?</h3>
  <p>Description</p>
    <div class="poll">
      ...
    </div>
  </div>
</div>

What do you want to achive with CSS that's not possible with that structure?

Anonymous’s picture

This is not the output in the 5.x-1.0-beta5 version. Is this in the -dev branch?

Anonymous’s picture

That is not the output in 5.x-1.0-beta5. Is it in 5.x-1.x-dev/HEAD?

anders.fajerson’s picture

Version: 5.x-1.0-beta5 » 5.x-1.x-dev
Status: Needs work » Closed (won't fix)

Yes, that's the output I get from 5.x-dev. If this is not enough for styling the block (it should be) you can always override the theme function in your own theme.