WEB DESIGN GARAGE [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

WEB DESIGN GARAGE [Electronic resources] - نسخه متنی

Marc Campbell

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Chapter 25. Controlling Design Space with HTML


By default, Web browsers put some extra whitespace between the browser interface and the start of the page. This comes in handy when you have a text-only Web page, but many types of designsespecially liquid layoutsdon't feel right with the extra padding.

FAQ

What happens to the values that the browser doesn't understand?

IE and Netscape ignore the attributes that they don't understand, so you aren't really creating compatibility problems by setting all four attributes.

You can turn off the extra padding by setting a couple of attributes in the body tag to 0. Which attributes you use depends on the browser. In Internet Explorer, the appropriate attributes are leftmargin and topmargin:


<body leftmargin="0" topmargin="0">

In Netscape browsers, the attributes are marginwidth and marginheight:


<body marginwidth="0" marginheight="0">

If you're smart, you'll use all four:


<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

Topic 26).


/ 175