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
Patter and gradient overlay to create a background with css/html!
Old 08-22-2008, 12:07 PM Patter and gradient overlay to create a background with css/html!
scutari's Avatar
Skilled Talker

Posts: 95
Name: Indrit
Trades: 0
Can anybody tell me that this issue is impossible so I can sleep free. I have some psd file which has a layer-background with a diagonal pattern(lines2 in photoshop) and also a gradient overlay(gray)... So i am confused how to create a background for the html/css layout. I know I can use big pics but that would cause lots of size. I can convert each of one, but not both in the same time to create a background.. Anyone any solution?
__________________

Please login or register to view this content. Registration is FREE
scutari is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-22-2008, 12:29 PM Re: Patter and gradient overlay to create a background with css/html!
thehuskybear's Avatar
Ultra Talker

Posts: 362
Name: Sam
Location: Tucson, AZ
Trades: 1
Well, you could overlay the backgrounds using div tags and positioning... (not sure if thats what your asking)
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
thehuskybear is offline
Reply With Quote
View Public Profile Visit thehuskybear's homepage!
 
Old 08-22-2008, 12:31 PM Re: Patter and gradient overlay to create a background with css/html!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You mean similar to the web site in my sig ??

You should be able to get the effect you want by 'stacking' divs with backgrounds defined - which is what I did on the Corvette site.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-22-2008, 01:08 PM Re: Patter and gradient overlay to create a background with css/html!
scutari's Avatar
Skilled Talker

Posts: 95
Name: Indrit
Trades: 0
yes carolina, that is what i meant, but You just have only your header, while my entire layout has to be filled with that kind of bg.yes I am doing that, but it will take lots of size..
__________________

Please login or register to view this content. Registration is FREE
scutari is offline
Reply With Quote
View Public Profile
 
Old 08-23-2008, 04:20 PM Re: Patter and gradient overlay to create a background with css/html!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Header, body, whatever, it would not require a huge image at all - and the patterned bg is NOT actually in the header of that site at all - it's on the body. The actual header is 'stacked' above it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-25-2008, 04:13 PM Re: Patter and gradient overlay to create a background with css/html!
scutari's Avatar
Skilled Talker

Posts: 95
Name: Indrit
Trades: 0
but how can you put the pattern and gradient overlay on the body, I cannot so that..I tried with a vertical pic and repeat-x, but it was not a good layout..
__________________

Please login or register to view this content. Registration is FREE
scutari is offline
Reply With Quote
View Public Profile
 
Old 08-25-2008, 09:06 PM Re: Patter and gradient overlay to create a background with css/html!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You don't put them both on the body, you 'stack' the divs - like this:

body{background: url(diagonalbg.gif); (this will repeat the background across and down)

#container{background: url(gradientbg.gif) repeat-x;

Then in your html you'd have something like this:

<body>
<div id="contaiiner">
<div id="wrapper">
the rest of your site layout goes in here


</div><!-- end wrapper -->
</div><!-- end container -->
</body>

-The diagonal bg will show first, the bottom 'layer' if you will.
-The container with the gradient will be on the next 'layer' above it. You can even position where the gradient starts if you don't want it at the very top.
- The "wrapper" holds the rest of your site layout, on the next 'layer' above container, and you can put a background on that too if you choose.

The secret to getting a diagonal strip to tile properly is in the creation of the graphic
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-26-2008, 06:17 PM Re: Patter and gradient overlay to create a background with css/html!
scutari's Avatar
Skilled Talker

Posts: 95
Name: Indrit
Trades: 0
yes I have tried to do this too, but never mind now cause the psd owner wanted me not to do it anymore...there are some kind of patterns which can be repeated like you said:

{background: url(diagonal.gif)}

but do not why that I had was not working good..I have deleted the filesso I cannot give you a pic..though thanks for replying..
__________________

Please login or register to view this content. Registration is FREE
scutari is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Patter and gradient overlay to create a background with css/html!
 

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 0.27462 seconds with 12 queries