Question about DIVs to control the <body> width

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Yaacov
Propeller Head
Posts: 34
Joined: Mon Aug 03, 2015 12:42 am

Question about DIVs to control the <body> width

Post by Yaacov »

Hi,
Working with Flare 11 in Windows 7.
I have a question about DIVs. I haven’t used them in a while and I need a refresher on creating a DIV that fixes the <body> width to a max width. I do not want the topic body to be the width of the browser window in full screen.
Please provide me with a CSS example of the DIV entry and where I would put it in the MasterPage.
My brain is working at half speed today, so please type slowly.

Yaacov
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Question about DIVs to control the <body> width

Post by ChoccieMuffin »

Rather than using a div, couldn't you set the max width property in your stylesheet? (It's possible I've typed too fast for myself, so feel free to shoot this suggestion down if it's not what you're after.)
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
s909
Propeller Head
Posts: 26
Joined: Mon Jan 18, 2016 11:19 pm

Re: Question about DIVs to control the <body> width

Post by s909 »

I set a max-width within the <body> tag (in css) to control the width of the text. I'm not sure if you can set it in Skins though.

body
{
etc etc...
max-width:1200px;
min-width:500px;
position:absolute;
text-align:left;
etc.etc..
}
Yaacov
Propeller Head
Posts: 34
Joined: Mon Aug 03, 2015 12:42 am

Re: Question about DIVs to control the <body> width

Post by Yaacov »

Thanks all, After waking up from a coffee induced coma, I just added
div.Alignment
{
max-width:800px;
margin-left: 50px;
}
to my css file and
<div class="Alignment"> to my MasterPage file between <body> </body>.

It's amazing to see how the brain works -when it doesn't. :shock:

Yaacov
Post Reply