CP Web Hosting
CP Web Hosting
 

Go Back   Hosting Forums - cp web hosting > Browser Scripting, HTML, XML and Multimedia > CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-04-2007, 10:21 AM
Senior Member
 
Join Date: May 2007
Posts: 334
Default Add a URL of the image

How do I put the image URL in this?

Code:
.image-001
{
float:left;
}
I want to add a URL of the image in there.

Plz. help
Reply With Quote
  #2 (permalink)  
Old 08-04-2007, 10:27 AM
Senior Member
 
Join Date: Apr 2007
Posts: 347
Default

Erm? If that's an image element that has a class of "image-001" then you don't need to supply a URL provided you use the SRC attribute and the image is *content* (article image). If that's just another element, then use the background-image property like so..

background-image:url(foo.jpg);
Reply With Quote
  #3 (permalink)  
Old 08-04-2007, 10:28 AM
Senior Member
 
Join Date: May 2007
Posts: 329
Default

/* CSS Document */

.nvidia-logo
{
background-image: url('/images/Nvidia.gif');
float: left;
}

then use:

<div class="nvidia-logo"></div>
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0