dlang.org should do it in style

via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 18 03:47:35 PST 2015


On Sunday, 18 January 2015 at 10:01:37 UTC, Jacob Carlborg wrote:
> On 2015-01-17 19:39, MattCoder wrote:
>
>> Indeed! But, if the "body" had a "width" setted this wouldn't 
>> occur.
>>
>> For example, adding "width: 1024px" on body in style.css it 
>> will now be
>> fine to see on mobile.
>
> No, that's not the correct solution. The correct solution is to 
> use media queries in the CSS and specify different widths 
> depending on the resolution. Also known as responsive design.

+

<meta name = "viewport" content = 
"width=device-width,initial-scale=1.0">


More information about the Digitalmars-d mailing list