Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Full width new page?

Asked Modified Viewed 1,012 times
D
djdandi
D
  • Senior Member, joined since
  • Contributed 298 posts on the community forums.
  • Started 99 threads in the forums
  • Started this discussions
asked
Senior Member

Hello, I have the latest version of the php-fusion engine, I use the Czechia style and I have a problem to make a new page full width.
I'm adding a new code page
<?php
require_once dirname(__FILE__).'/maincore.php';
require_once THEMES."templates/header.php";

?>
<style>
#rectangle {
   height: 100px;
   background-color: #F34A53;
}
</style>
<?

echo '<div class="container-fluid">';
   echo '<div class="row">';
      echo '<div id="rectangle">';echo '</div>';
   echo '</div>';
echo '</div>';

require_once THEMES.'templates/footer.php';

I get this effect
http://pogoda-zachodniopomorskie.pl/t...l/test.php
As you can see, there is a break next to the red block, how to remove it?
Edited by djdandi on 24-11-2021 11:40,
0 replies

6 posts

R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

I've added new options to the theme, so now it's easy to do this

require_once __DIR__.'/maincore.php';
require_once THEMES.'templates/header.php';

CzechiaThemeCore::setParam('container', FALSE);
CzechiaThemeCore::setParam('main_row', FALSE);
CzechiaThemeCore::setParam('right', FALSE);

add_to_css('
#main-menu {margin-bottom: 0;}
#rectangle {
    height: 100px;
    background-color: #F34A53;
}
');

echo '<div class="container-fluid">';
    echo '<div class="row">';
       echo '<div id="rectangle">';
       echo '</div>';
    echo '</div>';
echo '</div>';

require_once THEMES.'templates/footer.php';



snipboard.io/FxAvNr.jpg
0 replies
D
djdandi
D
  • Senior Member, joined since
  • Contributed 298 posts on the community forums.
  • Started 99 threads in the forums
  • Started this discussions
answered
Senior Member

Unfortunately, it didn't help. There is still some left and right gaps - see on my site
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

You have to update theme.

Or another solution is just remove gap with css..
0 replies
D
djdandi
D
  • Senior Member, joined since
  • Contributed 298 posts on the community forums.
  • Started 99 threads in the forums
  • Started this discussions
answered
Senior Member

Yes I updated. The top and bottom margins have disappeared but are still on the left and right side.
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

Check again what you added. I assume you updated code manually.
0 replies
D
djdandi
D
  • Senior Member, joined since
  • Contributed 298 posts on the community forums.
  • Started 99 threads in the forums
  • Started this discussions
answered
Senior Member

Thank you very much once again. It works
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

D
D
  • Senior Member, joined since
  • Contributed 298 posts on the community forums.
  • Started 99 threads in the forums
  • Started this discussions
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet