Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

columns width

04 May 2017, 04:31

Hi again, I have a question of the columns width, please check out the image attached.

I set up the Context width as WIDE, but the color bars I made are not wide to touch the edge of the page, their is big margin though. 

I am not familiar with  code, maybe I made mistake, using wrong code, but please help :)

thanks  
Attachments
color.jpg
color.jpg (205.16 KiB) Viewed 2309 times
Last edited by laxina on 04 May 2017, 09:43, edited 1 time in total.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: columns width

04 May 2017, 06:27

I can't see anything wrong in your code. It just looks like the CONTEXT module is NOT wide for some reason ... I would need a link to diagnose why it is not wide.
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: columns width

04 May 2017, 09:06

I am sorry, I am setting up the site in my local server, haven't make it public yet, don't know how to share it to you now. 

but let me make more screenshot for you now, you can see the text goes to edge of the page, as what WIDE does. 
Attachments
colors.jpg
colors.jpg (150.02 KiB) Viewed 2304 times
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: columns width

04 May 2017, 09:14

i just tried this with a total new X3 installation, still have the same problem. 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: columns width

04 May 2017, 10:32

I kinda forgot, the "row" class naturally creates a limited width (max-width: 71.25rem) to the container where it is applied. This is just how it works, based on the foundation grid. You can easily overcome it by simply omitting the "row" class, for example:
Code
<div>
  <div class="small-6 columns" style="background-color:green">1</div>
  <div class="small-6 columns" style="background-color:red">2</div>
</div>
Alternatively, you reset the "max-width" style specifically for the row:
Code
<div class="row" style="max-width: none;">
  <div class="small-6 columns" style="background-color:green">1</div>
  <div class="small-6 columns" style="background-color:red">2</div>
</div>
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: columns width

04 May 2017, 20:41

great, it works, thanks a lot, and thanks a lot for the quick reply as always.