Full height and full width CSS layout

前端 未结 4 1875
清歌不尽
清歌不尽 2021-02-02 00:47

I am looking for a way to create a CSS-only (no JavaScript) layout with 5 regions that looks like this:

   ┌────────────────────┐
   │          H         │
   ├─         


        
4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 01:14

    Hi fmunkert (and others here:),

    I was just curious and thought want to try it out, so I fired up my notepad and come up with something like this:

    
        
    
    
    H
    A
    B
    C
    F

    and here's the output in Firefox:

    Firefox Screenshot

    and the output in IE8:

    IE8 screenshot

    I tested this using Firefox 3 and IE8. Seems ok to me. Is this what you wanted? :)

    Note 1: As mentioned by others, this may not be practical, but still it depends on what you / your clients want.

    Note 2: If this is really what you wanted, you can edit the height and width values according to your need, and you should put those CSS rules into a separate CSS file instead of inline styles as a best practice.

提交回复
热议问题