Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By drupalfriend123 on
Hi,
I have created a block (class: M-logo) for mobile. I have the php code in the block to display the logo. After that, I applied this css. Only problem is that, I see the logo is being fixed. Instead I expected the block with image to be fixed.
.M-logo { position: fixed;z-index: 1030; right: 0;left:0;width:100%; }
Can you please help?
Comments
=-=
You have posted blank message
You have posted blank message.
=-=
I removed my response.
if you want the block to remain fixed you should probably be targeting the block id. However, I'm not sure what you are expecting even with that. If you expect the region to remain fixed, at the width of the page, then the region is what should be fixed.
http://www.htmldog.com/
http://www.w3schools.com/html/
also of note: there are many support venues for CSS support.