Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1316 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

using 1px gif image

Thread title: using 1px gif image
Reply    
    Thread tools Search this thread Display Modes  
04-04-2010, 11:05 PM
#1
sudhakararaog is offline sudhakararaog
Status: Junior Member
Join date: Sep 2009
Location:
Expertise:
Software:
 
Posts: 51
iTrader: 0 / 0%
 

sudhakararaog is on a distinguished road

  Old  using 1px gif image

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

Reply With Quote
04-04-2010, 11:21 PM
#2
santa is offline santa
santa's Avatar
Status: Member
Join date: Mar 2009
Location: Location: location.
Expertise: Design, HTML
Software: Espresso, Photoshop, Mail.app
 
Posts: 398
iTrader: 7 / 100%
 

santa is on a distinguished road

Send a message via ICQ to santa Send a message via AIM to santa Send a message via MSN to santa Send a message via Yahoo to santa Send a message via Skype™ to santa

  Old

An ID has a higher priority than a class.. I swear all you use this forum for is asking questions :P

Reply With Quote
04-05-2010, 02:50 AM
#3
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

These questions could all be solved by spending a few minutes on Google. Why don't you have a read though an article I wrote some time ago about effectively asking question on forums (emphasis on point #7).

Reply With Quote
04-05-2010, 10:48 AM
#4
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

Originally Posted by sudhakararaog View Post
i have a 1px X 1px gif image white in color
You want a transparent GIF.

Originally Posted by sudhakararaog View Post
is it possible to have a class attribute when a div has an id attribute
Yes.

Reply With Quote
04-05-2010, 11:07 PM
#5
Steven Weathers is offline Steven Weathers
Status: Junior Member
Join date: Apr 2009
Location: Concord, North Carolina
Expertise: CSS, HTML, SEO, CMS
Software: Photoshop, Notepad++
 
Posts: 46
iTrader: 2 / 100%
 

Steven Weathers is on a distinguished road

Send a message via AIM to Steven Weathers Send a message via MSN to Steven Weathers Send a message via Yahoo to Steven Weathers Send a message via Skype™ to Steven Weathers

  Old

Why are you worrying about people being able to view your background image? If they are even 1/2 smart they can read your CSS and HTML and get a direct link to the original background image anyway. You shouldn't worry about trying to protect your images from theft, as its basically impossible.

Reply With Quote
04-21-2010, 09:40 PM
#6
A2K10 is offline A2K10
Status: Junior Member
Join date: Mar 2010
Location:
Expertise:
Software:
 
Posts: 30
iTrader: 0 / 0%
 

A2K10 is on a distinguished road

  Old

You can also use a transparent PNG but the GIF would probably workout better because of browser compatibility. However, as someone else pointed out, if you're doing this for the sole purpose of protecting your background image then it's not really worth going through this hassle as it can easily be bypassed. I'm pretty sure a "save as" on any browser would still save the background image. I'd watermark it if you're really concerned.

Reply With Quote
04-27-2010, 10:55 PM
#7
Dr John is offline Dr John
Status: Junior Member
Join date: May 2005
Location:
Expertise:
Software:
 
Posts: 77
iTrader: 0 / 0%
 

Dr John is on a distinguished road

  Old

And if I can see an image in my browser, then I can do a screen capture to get it! So just give up with such ideas to "protect" a background image - if it's shown on my screen, it's mine if I want it!

Reply With Quote
04-28-2010, 05:29 PM
#8
SenseiSteve is offline SenseiSteve
SenseiSteve's Avatar
Status: Member
Join date: Apr 2010
Location: St. Louis, MO
Expertise: Sales & Marketing
Software: Dreamweaver and Photoshop
 
Posts: 354
iTrader: 0 / 0%
 

SenseiSteve is on a distinguished road

Send a message via MSN to SenseiSteve Send a message via Skype™ to SenseiSteve

  Old

Originally Posted by Village Genius View Post
These questions could all be solved by spending a few minutes on Google. Why don't you have a read though an article I wrote some time ago about effectively asking question on forums (emphasis on point #7).
I just took a few minutes to read your article, and it made a lot of good points. Never knew about www.lmgtfy.com

Reply With Quote
05-14-2010, 12:01 PM
#9
c69 is offline c69
c69's Avatar
Status: Junior Member
Join date: Nov 2009
Location: Kiev, Ukraine
Expertise:
Software:
 
Posts: 27
iTrader: 0 / 0%
 

c69 is on a distinguished road

  Old

1) you can use multiple classes if you separate them with spaces.
2) instead of idiotic "protection", use watermarks, so people will know where they took the pictures and will be able to find your site again.

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed