CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 18th, 2004, 09:29 PM
ed shaw ed shaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 35 ed shaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 34 sec
Reputation Power: 5
Question about <img src=""> in CSS

Please help me with a couple of questions about following style sheet element. The url('blue_field.jpg') form is strange to me. Can this be rewritten in <img src=""> form? Any reason why not? Could I write
background: <img src="/pic/blue_field.jpg">;
Also, what is (repeat-y top left) ?? I have never seen this either.
Thank you.
Ed Shaw
-----------------------css-----------------------------
Links {
background: url('bluefield.jpg') repeat-y top left;
padding: 10px;
margin-top: 180px;
width: 150px; font-style:normal; font- variant:normal; font-weight:normal; font-size:10px;
font-family:verdana, sans-serif
}
-----------------------css-------------------------

Reply With Quote
  #2  
Old March 18th, 2004, 09:51 PM
chowmein chowmein is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 10 chowmein User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I do not think you can write
background: <img src="/pic/blue_field.jpg">;

url(LINK) is just the syntax used in CSS.
LINK is what you put in your src attribute in your image tag.
Works the same way.

(repeat-y top left) that is just setting up the attributes for
the bg-image. It will repeat in the y direction and be aligned
top-left. The background attribute is a shorthand attribute
for five other seperate attibutes. They are
background-attachment, background-color, background-position, background-image, and background-repeat.

Reply With Quote
  #3  
Old March 19th, 2004, 05:21 AM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,648 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 14 h 40 m 32 sec
Reputation Power: 571
the background css2 specs;
http://www.w3.org/TR/CSS2/colors.html#q2

Reply With Quote
  #4  
Old March 19th, 2004, 07:37 AM
ed shaw ed shaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 35 ed shaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 34 sec
Reputation Power: 5
Image link in css

Thank you, chowmein, for your kind assistance.
I understand now.
Ed





Quote:
Originally Posted by chowmein
I do not think you can write
background: <img src="/pic/blue_field.jpg">;

url(LINK) is just the syntax used in CSS.
LINK is what you put in your src attribute in your image tag.
Works the same way.

(repeat-y top left) that is just setting up the attributes for
the bg-image. It will repeat in the y direction and be aligned
top-left. The background attribute is a shorthand attribute
for five other seperate attibutes. They are
background-attachment, background-color, background-position, background-image, and background-repeat.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Question about <img src=""> in CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway