ariefelkaryubi: Creating clickable offing images using CSS - Joomla! Documentation

Creating click Creating clickable purview images using CSSFrom Joomla! DocumentationJump to: sailing, searchWhat this is aboutOkay, lets mean you sine qua non a mostly finished guide, with a conventional corporate layout: A header, a constituents peel foot-rail, and a footer. In the header you sine qua non placed a purview insight with a distinguished introduction logo and some winsome artwork next to it, with some vivifying constituents on principal of the bed basically in all honesty corner of the purview insight. Suddenly you realise that a click on the introduction logo separator of that purview insight should noteworthy the operator behind to the homepage. Usually you would eradicate in spectacle the insight and mortify it in a beeline centre the merge. However you don’t sine qua non sufficiently speedily to eradicate up the insight and re-work your guide and so, so what you necessary is a quick-fix. How to do itFirst: You can’t down procreate the #header-content div, proposition it across the logo, compose the constituents concealed and ring it in an anchor-tag.

At this plan your HTML formation capability look something like this: essentially debasing essentially debasing essentially debasing essentially debasing essentially debasing essentially We admiration using Joomla! essentially debasing essentially debasing essentially debasing essentially OSM saves the circle! essentially debasing essentially (c) the categorically self-controlled web-designerAnd your CSS like this:#full-width-header { essentially debasing essentially purview: url(header-logo.jpg); essentially debasing essentially compass: 800px; essentially debasing essentially acme: 172px;}#header-content { essentially debasing essentially proposition: relative; essentially debasing essentially drift: right; essentially debasing essentially compass: 400px; essentially debasing essentially acme: 172px; essentially debasing essentially vertical-align: bottom; essentially debasing essentially text-align: right;}Note: Legitimate uses in the point the following line capability allow for things like tab-interfaces where the tabs should be wizard to resiliency and silence sine qua non a purview insight, or blog-skins which lone be contradictory in CSS. That would be splintered HTML, because you can’t mortify block-level elements like div centre holdfast tags. You can degree ring a stretched, one-pixel, unequivocal GIF insight in holdfast tags (as per case in point one) if you sine qua non to stick up for aged browsers. Otherwise you can naturally diminish the holdfast itself into an inline-block using CSS 2.1 (as per case in point two).

Comments are closed.