Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 04-04-2010, 07:06 PM using 1px gif image
Ultra Talker

Posts: 254
Trades: 0
please look at this link
http://sudhakargolakaram.co.in/files/onepxgif.html

the idea is to have an image as a background however on top of this background i have a 1px X 1px gif image white in color

this gif image would repeat in x and y above the main background image so if i right click and select view background image i should see the gif image not the actual image which is as the background

i am not able to see the background image and when i right click i see the gif image

please advice how i can fix this

also is it possible to have a class for a div that has an id declared as i have mentioned in this page
<div id="container" class="test">

or is it not possible to have a class attribute for a div when an id is declared for that div

as there can be multiple classes decalred when using the class attribute is it possible to have a class attribute when a div has an id attribute

thanks
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-05-2010, 08:58 AM Re: using 1px gif image
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
the idea is to have an image as a background however on top of this background i have a 1px X 1px gif image white in color
Probably not a great idea having it WHITE as the background will not show through.


Quote:
also is it possible to have a class for a div that has an id declared as i have mentioned in this page
<div id="container" class="test">
Yes

Quote:
as there can be multiple classes decalred when using the class attribute is it possible to have a class attribute when a div has an id attribute
Yes.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-05-2010, 05:36 PM Re: using 1px gif image
Ultra Talker

Posts: 254
Trades: 0
so should i create the 1px gif as a transparent gif image and will it work
sudhakararaog is offline
Reply With Quote
View Public Profile
 
Old 04-05-2010, 06:14 PM Re: using 1px gif image
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
At least you will be able to see the background image.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-06-2010, 07:26 AM Re: using 1px gif image
Ultra Talker

Posts: 254
Trades: 0
thanks for replying

i used a 1px x 1px transparent gif image for the inner div and it worked

#container2{
float: left;
position: relative;
width: 500px;
height: 200px;
background: url(greeting2.jpg) no-repeat top left;
}
.inner2{
float: left;
position: relative;
width: 500px;
height: 200px;
background: url(1pixel-transparentgif.gif) repeat;
}


now when i right click i see the 1px gif and not the actual image that appears

i also tried another method which is quite close to what i was looking for

#container1{
float: left;
position: relative;
width: 500px;
height: 200px;
z-index: -1;
background: url(greeting2.jpg) no-repeat top left;
}

<div id="container1">
content
</div>

when i add negative z-index the View background Image option is not highlighted.

thanks
sudhakararaog is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to using 1px gif image
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.01227 seconds with 12 queries