FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

CCS Positioning of a picture in a cell

 


Possum
Hi

I can add a picture to a cell. But if its a small one it repeats. Is there a way to add a picture to the top right margin of a cell using CCS..


Cheers Possum..
imagefree
no one can make it using CCS Very Happy

here is the solution


Code:
.your_css {
   background-image:              url(link_to_image_file.jpg);
   background-repeat:              no-repeat;
   background-position:            right top;
   background-attachment:       scroll;
}//used dreamweaver for this CSS
Possum
Hi

If I wasn't not tired from programming all day I would add that code right now..

Thx...from Possum..
Azmo
imagefree wrote:
no one can make it using CCS Very Happy

here is the solution


Code:
.your_css {
   background-image:              url(link_to_image_file.jpg);
   background-repeat:              no-repeat;
   background-position:            right top;
   background-attachment:       scroll;
}//used dreamweaver for this CSS


that's prob the longest css for something that acutally fits in 2 rows... Smile

.your_css {
background: url('link_to_image_file.jpg') no-repeat right top;
background-attachment: scroll;
}

Dreamweaver always makes things more anoying then it needs to be Smile
jabapyth
Azmo wrote:
imagefree wrote:
no one can make it using CCS Very Happy

here is the solution


Code:
.your_css {
   background-image:              url(link_to_image_file.jpg);
   background-repeat:              no-repeat;
   background-position:            right top;
   background-attachment:       scroll;
}//used dreamweaver for this CSS


that's prob the longest css for something that acutally fits in 2 rows... Smile

.your_css {
background: url('link_to_image_file.jpg') no-repeat right top;
background-attachment: scroll;
}

Dreamweaver always makes things more anoying then it needs to be Smile


sometimes verbosity can improve clarity Wink
romaop
Yes, the no-repeat feature avoids repetition.
imagefree
Azmo wrote:
Dreamweaver always makes things more anoying then it needs to be Smile


It tries to provide the best and bug free solution. Very Happy
Possum
This code is going into my very own webpage app..

Cheers Possum..
AOP Web Development
That it the best stuff.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.