简体   繁体   中英

How can I position this drupal block?

I have created a block for my first client's website, im newish to Drupal and web development. On their contact page , I would like to position the block with the contact details to the right of the contact form which I have floated left.

I've tried floating the block right and position with absolute positioning, however when I resize the window it doesn't look right, all the text sqaushes up.

What I need is to move the block down, which I know I will have to put some css into the responsive css files to make the block move under the form when the window is resized but how should I position this text next to the form?

Thank you

您可以将该块向右浮动,并为两个块指定特定的宽度

Which theme are you using? Isn't there a sidebar block you can position the contact details in? You shouldn't need to do any floating to achieve this, but rather the positioning of the blocks should be happening at the theme layout and template level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM