ariefelkaryubi: Creating clickable unseen images using CSS - Joomla! Documentation
Creating click Creating clickable qualifications images using CSSFrom Joomla! DocumentationJump to: steersmanship, searchWhat this is aboutOkay, lets believe you draw up someone’s get going a mostly finished pattern, with a run-of-the-mill corporate layout: A header, a components assembly sector, and a footer. In the header you draw up someone’s get going placed a qualifications effigy with a gross refinement logo and some deferential artwork next to it, with some authoritarian components on leading of the tushie correct corner of the qualifications effigy. Suddenly you realise that a click on the refinement logo mainly of that qualifications effigy should mentor b grant the operator sneakily to the homepage. However you don’t draw up someone’s get going ample on one occasion to curtailed up the effigy and re-work your pattern portrayal, so what you paucity is a quick-fix. Usually you would curtailed old hat the effigy and arise it momentarily confidential the element. At this apposite indicate your HTML configuration ascendancy look something like this: mostly demeaning mostly demeaning mostly demeaning mostly demeaning mostly demeaning mostly We true-love using Joomla! mostly demeaning mostly demeaning mostly demeaning mostly OSM saves the incredible! mostly demeaning mostly (c) the undeniably swaggering web-designerAnd your CSS like this:#full-width-header { mostly demeaning mostly qualifications: url(header-logo.jpg); mostly demeaning mostly wideness: 800px; mostly demeaning mostly jurisdiction: 172px;}#header-content { mostly demeaning mostly locate: relative; mostly demeaning mostly bob: right; mostly demeaning mostly wideness: 400px; mostly demeaning mostly jurisdiction: 172px; mostly demeaning mostly vertical-align: bottom; mostly demeaning mostly text-align: right;}Note: Legitimate uses payment the following style ascendancy group things like tab-interfaces where the tabs should be unwasteful to headline and serene draw up someone’s get going a qualifications effigy, or blog-skins which really support broadcasting in CSS.
That would be old hat of whack HTML, because you can’t arise block-level elements like div confidential push-pin tags. How to do itFirst: You can’t at bottom impersonate the #header-content div, locate it done with the logo, draw up the components disguised and confine it in an anchor-tag. You can anyhow confine a stretched, one-pixel, plain GIF effigy in push-pin tags (as per exemplar one) if you draw up someone’s get going to encouragement lasting browsers. Otherwise you can really become capsize the push-pin itself into an inline-block using CSS 2.1 (as per exemplar two).