Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Page Layout: Hacks

Using HTML Side-Effects

Arguable the commonest method of achieving layout effects such as margins and indenting is to use the side-effects of specific browser implementations, such as BlockQuote.
<BlockQuote>
    Arguable the commonest method of achieving layout
    effects such as 
    <a href="/Authoring/Style/Sheets/Margins/">margins</a>
    and indenting is to use the side-effects of
    specific browser implementations, such as
    <tt>BlockQuote</tt>.
</BlockQuote>
This method isn't guaranteed to work in all browsers, and might cause problems if ever any 'smart' software wants to understand it's structure, e.g. a text-to-speech browser might inform the user that your text is a quotation, or a list element - when its not.
<dl>
<dd>	This method isn't guaranteed to work in all
	browsers, and might cause problems if any
	'smart' software wants to understand it's
	structure, e.g. a text-to-speech browser
	might inform the user that your text is a
	quotation, or a list element - when its not.
</dl>

GIF Spacers

are usually transparent but I've used my 2x2 gold gif here so you can see how this technique works. You can align the gif left or right or put it in a table cell to force it to at least that width. Note that the height and width are declared to be whatever you please, they don't have to match the gif's actual size (it's OK to lie!). I've also put some space around them, to show that you could use a non-transparent gif padded with white space for design effect. Note also the use of the ALT attribute to avoid that browsers with image loading turned off, or text-mode browsers, will display spurious information such as [IMAGE].
<Img	src	= "/Icons/gold.gif"
	width	= 60
	height	= 60
	vspace	= 20
	hspace	= 20
	align	= right
	alt	= ""
	>

Page Layout, Margins, Indenting, and Columns
Page Layout: Tables


Up to => Home / Authoring / Design / Layout




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers