View Full Version : pictures & link pictures in css


cutout
04-17-2006, 02:05 PM
Ok, i'm new to css, i have no idea what I'm doing, and I'm stuck: i cant find any sites with helpful css stuff on, like literally telling you what the code is to do what (much like lissaexplains does with html). if anyone has any ideas it'd help alot, and mean i dont have to post loads of questions here!.

basically, all i want to do is add several images that are links. not a background image, they're like buttons that i want on every page. and... i have no idea what to type to make a picture, or a link show up. stupid or what? if anyone could just show me the code that'd be great. thanks.

HeLpM3
04-17-2006, 02:26 PM
umm kinda confused about what you are talking about but if you want to make a picture a link just use this

<a href="URL"><img src="PIC URL" border="0"/></a>

cutout
04-17-2006, 04:46 PM
I know the html, but when i put html in a style sheet it doesnt work. I basically want the css equivalent to that code.

CJX
04-17-2006, 06:08 PM
CSS isn't an equivilent / counterpart to HTML. You have to use them together. HTML provides the objects (the link, the image etc.) and CSS tells the browser how to display them (border: 1px solid #000;, color: #DDD etc)

For tutorials, try this: http://www.htmldog.com/guides/

cutout
04-17-2006, 09:02 PM
Oh okay, thanks. i thought when you code a css layout you could insert images that would appear on every page. so i guess then you have to code the images on each page instead?

pb&j
04-18-2006, 05:01 AM
you can use SSI or PHP includes.
do some searching on those subjects.