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 May 30th, 2003, 02:01 PM
stodge stodge is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 61 stodge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
How to do this with CSS: see linked site

Is it possible to do the light blue and white horizontal stripes with CSS, as can be seen on the left side of this site:

http://www.5by5software.com/default.asp

I appreciate it could be done with an image, but I was wondering if there was a CSS way of specifying this.

Many thanks

Reply With Quote
  #2  
Old May 30th, 2003, 11:51 PM
magma's Avatar
magma magma is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Italy, EU
Posts: 517 magma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 45 m 8 sec
Reputation Power: 6
You can do it using a code like the following one:
Code:
h3 {
	font-size:10pt;
	font-family:Verdana, Arial, sans-serif;
	font-weight: bold;
	color: white;
	background-color: #4880C0;
	line-height: 20px;
}

In this way you can later insert an H3 tag to have that effect. You can also set a MARGIN-RIGHT value to limit the width of the line.
If you don't want to modify the definition of a header (level 3 in this case), you can define a class (.TITLE) and then refer to it using the appropriate property in the desired tag.
i.e. <P CLASS="TITLE">

Bye, Magma

Reply With Quote
  #3  
Old June 2nd, 2003, 11:28 AM
icy_polecat's Avatar
icy_polecat icy_polecat is offline
Senior Polecat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Jersey (the original version)
Posts: 210 icy_polecat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 57 sec
Reputation Power: 6
Send a message via Yahoo to icy_polecat
I'm not sure but i think Magma got the wrong end of the stick...

Anyway, in short there is no way using CSS alone to recreate this effect. You would have to use an image of some varieity although with carefull use of the CSS repeat options you can use a gif of no more than 100 odd bytes.

eg:

using the image attached (ripped from the referenced site - sorry guys) and the following CSS class you could apply the BG to a table cell / div or to a whole page:

.stripy {
background-image: url(stripy.gif);
background-repeat: repeat-y;
background-position: left top;
}

then simply add the class="stript" parameter to the relevent HTML tag ...

Sorted

Icy
Attached Images
File Type: gif stripy.gif (74 Bytes, 251 views)

Reply With Quote
  #4  
Old June 2nd, 2003, 11:41 AM
magma's Avatar
magma magma is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Italy, EU
Posts: 517 magma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 45 m 8 sec
Reputation Power: 6
Aaaaagh, you're right!!
...the left side...
Midway upon the journey of my life... and I can't distiguish between left, right or just the middle...

Perfectly agree with icy_polecat... you need to use an image!

Cheers, Magma

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > How to do this with CSS: see linked site


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 5 hosted by Hostway