`

Full Screen Page Width

 
阅读更多

The page does not has a fixed width, but fills all the screen of the browser, no matter what the current browser display resolution is. The contents of the page also does not has a fixed width either. We usually use width="XX%" to give it a relative width.

 

A example of this pattern is www.amazon.com

 

 

In this case, the user will see the page in full screen, no matter what the resolution of his browser is.

 

Pros:

1. The user see the page in full screen, the visual effects would be better. Even if in small resolution browser, the page can still display with no horizontal scrool bar.

2. The user can take advantage of high resolution screen to display the page in a good effect.

 

Cons:

1. The visual effect varies in browsers with different resolution, since the actual display width is calculated according to the browser resolution.

2. Implementation is more difficult and costs more. Because the container elements' width is undetermined, it's relatively harder to layout the content in it.

 

Implementation:

 

width: xx%;

We give a width to the element, and its width would be calculated from the container's width.

Those block elements (p, div, h, dl etc.) will fill all the width of the container.

 

Notes:

1. Even in Full Screen Page, we can still have fixed pixel width elements.

2. For Full Screen Page, we usually set a min width for the page. We can give a div to wrap all the page and apply the css to this div. If the resolution is less that the given min-width, then the page will display with a horizontal scroll bar and the give width.

min-width:980px;

 

 

Related Patterns:

Fixed Pixels Page Width

 

  • 大小: 635.3 KB
分享到:
评论

相关推荐

    java pdf 查看器

    JToggleButton fullScreenButton; /** the current page number text field */ JTextField pageField; /** the full screen window, or null if not in full screen mode */ FullScreenWindow fullScreen; /**...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8 亲测可用,含全部源码及 Demo The Library contains components and classes for Borland Delphi versions 7, 9, Developer Studio 2006, Delphi 2007...

    jquery主页全屏滑动切换

    <section id="page1" class="full-screen-content"> <!-- 页面1内容 --> <section id="page2" class="full-screen-content"> <!-- 页面2内容 --> ``` ### 3. CSS 样式 为了让菜单悬浮并使内容自适应窗口大小...

    DevExpress VCL 13.2.5 D7-DXE6 FullSource

    •Q468576 - Switching a floating toolbar's Visible property to True in the BarManager's OnMerge event handler does not show this toolbar on screen ExpressDocking Library •Q468199 - The Zone ...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    Ability to scale grid to fit it to page width. Ability to print/preview title for grid. Ability to print/preview page header and page footer where you can specify macros for current page, current...

    full-page-html-css:具有视频背景的完整着陆页(借助于Brad Traversy的YT教程)

    标题 "full-page-html-css:具有视频背景的完整着陆页(借助于Brad Traversy的YT教程)" 提示我们这个项目是关于创建一个全屏HTML和CSS的着陆页面,其中包含一个视频背景。这通常涉及到网页设计,特别是前端开发技术...

    PLSQL.Developer v11.0.0.1762 主程序+ v10中文包+keygen

    Full screen mode will now show minimized docking tools so that they can still be accessed Connection popup menu item "New Instance" added to open a new PL/SQL Developer instance for the selected ...

    android-viewflow

    Scroll down to the bottom of the page for a screen shot. The component is a Library Project. This means that there's no need to copy-paste resources into your own project, simply add the viewflow ...

    EhLib5.0.13 最新的ehlib源码

    Ability to scale grid to fit it to page width. Ability to print/preview title for grid. Ability to print/preview page header and page footer where you can specify macros for current page, current...

    cuteEditor6.0

    Edit in full screen mode, maximizing your available space. <br/> 没有打开较慢的Java或ActiveX组件 <br/>100% DHTML, JavaScript ASP.Net code. There are no slow Java or ActiveX components ...

    ehlib_vcl_src_9_3.26

    Ability to scale grid to fit it to page width. Ability to print/preview title for grid. Ability to print/preview page header and page footer where you can specify macros for current page, current...

    EhLib 9.1.024

    Ability to scale grid to fit it to page width. Ability to print/preview title for grid. Ability to print/preview page header and page footer where you can specify macros for current page, current...

    javacv-platform-1.3.3-src

    JavaCV also comes with hardware accelerated full-screen image display (CanvasFrame and GLCanvasFrame), easy-to-use methods to execute code in parallel on multiple cores (Parallel), user-friendly ...

    HTML5头部meta标签的一些常用信息小结

    `<meta name="full-screen" content="yes">`和`<meta name="x5-fullscreen" content="true">`:使UC和QQ浏览器进入全屏模式。 11. **应用模式**: `<meta name="browsermode" content="application">`和`...

    VB编程资源大全(英文源码 其它)

    6 , chunks.zip This will open a file and read it in "Chunks" of a selected file.<END><br>7 , logging.zip ... <END><br>93,SystemInfo.zip SystemInfo gets some imp info about OS, Screen, Desktop, ...

    BURNINTEST--硬件检测工具

    PassMark BurnInTest V5.3 ...All Rights Reserved ... Overview ======== Passmark's BurnInTest is a software tool that allows all the major sub-systems of a computer to be simultaneously tested for reliability...

    ak2新版内核AKAIO1.5

    + Cheat Update functions run from plugin, giving full memory access to it and allowing updates without full AKAIO updates - Can choose to download USRCHEAT.DAT or CHEATS.XML and whether or not to ...

    unigui0.83.5.820

    0.83.5.820 +---------------------------------------------------------------------------------------- - 0000796: DBGrid: Render bug when Column color is clWindow and project is created with 0.82 ...

Global site tag (gtag.js) - Google Analytics