Jump to content
  • 0

Flux cp - content out side of col structre


Poseidon

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   6
  • Joined:  12/09/11
  • Last Seen:  

Hi guys

This is the code i have in header.php

    <div class="container">
		<div class="row">
			<div class="col-md-3">
				<?php //include 'main/sidebar.php' ?>
			</div>
			<div class="col-md-6">
		

		<?php //include 'main/loginbox.php' ?>
					
			<?php if (Flux::config('DebugMode') && @gethostbyname(Flux::config('ServerAddress')) == '127.0.0.1'): ?>
				<p class="notice">Please change your <strong>ServerAddress</strong> directive in your application config to your server's real address (e.g., myserver.com).</p>
			<?php endif ?>
								
								<!-- Messages -->
								<?php if ($message=$session->getMessage()): ?>
									<p class="message"><?php echo htmlspecialchars($message) ?></p>
								<?php endif ?>
								
								<!-- Sub menu -->
								<?php include $this->themePath('main/submenu.php', true) ?>
								
								<!-- Page menu -->
								<?php include $this->themePath('main/pagemenu.php', true) ?>
								
								<!-- Credit balance -->
								<?php //if (in_array($params->get('module'), array('donate', 'purchase'))) include 'main/balance.php' ?>
		</div>
		<div class="col-md-3">
		</div>

as you can see the main bulk of content is in between <div class="col-md-6"></div> but when i load up the page (localhost only) and i examine the code the content is out side the <div class="container"></div>

I have been trying all day to figure out why it keeps doing it but to no avail, if anyone once could help me, I will be eternally grateful.

Kind regards58b87e6680f64_screenshot_issue1.thumb.jpg.c0d2a66a99146cec4aa2b9bf7ffa5494.jpg

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   6
  • Joined:  12/09/11
  • Last Seen:  

It okay i figured it out, i ended the div for content in the header and thats not what its  meant too the content has to end in the footer

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   6
  • Joined:  12/09/11
  • Last Seen:  

Bump

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

1st, bumping is bad. Have a warning point.

2nd, the code isn't outside of the container.

3rd, I don't think you're fully understanding what you're looking at. The data isn't inside the divs where it needs to be, so you just need to fix that.

Perhaps explaining what you're trying to do might help.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   6
  • Joined:  12/09/11
  • Last Seen:  

My apologies for not following the rules will not happen again.

okay what i'm trying to achieve is content in the center of the page, sidebar on the left and right hence the <div class="col-md-3"></div>, <div class="col-md-6"></div>, <div class="col-md-3"></div>. = 12 coloumn grid system that bootstrap framework offers.

something like this

 

 

 

Edited by Poseidon
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   3
  • Joined:  04/02/12
  • Last Seen:  

Did you explicitly set your html, body to 100%?

Link to comment
Share on other sites

×
×
  • Create New...