MyBB Community Forums

Full Version: how to add more divs?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im creating my theme however i want the container of the forum to be enclosed only in the trows etc. want the logo to have its own div and background. I want to position this div at the top of the browser and the container div in the middle. How can i do this? i just want to put the logo on a div by itself outside the container.
code from MyBB's default theme
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
it can be moved to top of container div and adjusted with css if required
(2013-06-21, 03:12 AM).m. Wrote: [ -> ]code from MyBB's default theme
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
it can be moved to top of container div and adjusted with css if required

Dont understand that piece of code. I just want to have .logo as its own div outside of tge container and in the body.
^ above suggestion should work for your requirement. can you post the code from header template ?
aren't you using MyBB's default stock theme as the base for the new theme?
if your working theme is in testing on a live forum then give the forum link.
(2013-06-21, 04:02 PM).m. Wrote: [ -> ]^ above suggestion should work for your requirement. can you post the code from header template ?
aren't you using MyBB's default stock theme as the base for the new theme?
if your working theme is in testing on a live forum then give the forum link.

yes the default is the mybb theme and yes the live is crypticdev.com

i just want the logo div on its own