Author

Topic: width of screen. (Read 629 times)

vip
Activity: 1316
Merit: 1043
👻
May 20, 2014, 10:02:22 PM
#9
Try using max-width instead of width?
administrator
Activity: 5222
Merit: 13032
May 20, 2014, 09:39:26 PM
#8
I keep my browser at around 700px wide, and it looks fine for me. It also looks OK on my Android devices. But I agree that the behavior is non-optimal.

Is there any way this wide banner ad could be broken up into "left half" and "right half" - meaning, people who have their browser 1600 pixels wide would see it exactly the same way, but for those of us who really like to leave half our screen for other things (like, say, an editor for taking notes or a terminal shell for doing work) the page compositor could just stack them one atop another?

The way ads are done, that's not really practical. Some ads will actually do that, but it'd be difficult to enforce for all ads.

The ad should probably behave like it's contained within a div with overflow:auto, but doing this seems complicated with our table layout. I haven't yet been able to figure out how to do it. I'll mess with it more later.

If you know how to do it, let me know. But there are some restrictions due to the way ad blockers are bypassed. CSS can be added to any element, and the ad area can be surrounded by any number of additional tags, but the ad area must be balanced.
ad_area
is OK, but ad_area
...
is (probably) not. Furthermore, the wrapper around the ad HTML must behave like ad_code. The behavior of the inner HTML and neighboring HTML must not be affected by the wrapper, and the whole ad+wrapper must be inline. (Ads are always inline or inline-block.)

The first CSS class listed in the page's