![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jun 2007
Posts: 27
OS: XP Pro
|
A Little help with my CSS
Hey Guys , I'm not that great at coding I can just do enough to get by
Here is my problem , I'm running a Content rotation module . Which is looking in a spefic section and pulling the first couple of lines from the story. here is what I want to do I have to have a Image at the top of all my stories and then the Module will have a pretty picture to display , But I want to Overlay The Next couple of lines over that picture ussing css , If this is hard to understand i made some pictures to help express what i'm saying Example story ![]() Heading Text text Blah Blah Blah And I want CSS to Draw a shaded Box Over the Image and Move the text Into it Example Story with expected results ![]() Any Ideas how to achieve this ? for my site http://adrenalinereviews.com/ |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,878
OS: Vista, various linux distros
|
Re: A Little help with my CSS
Hey, if you position the text below the image then something like this would put it above the image:
Code:
position:absolute; /*of course you just need to change the value below*/ top: -50px; Code:
color: #00FF00; background-color: #333333; Code:
filter:alpha(opacity=85); -moz-opacity:.85; opacity:.85; give it a go and post a link if you need more help. Cheers, Jamey Last edited by jamiemac2005; 10-09-2008 at 05:02 PM. |
|
|
|
|
|
#3 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,431
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: A Little help with my CSS
Keep in mind this won't validate for a while. What Jamey has proposed is CSS Level 3, the new standard that has not been implemented yet. Some parts of CSS Level 3 have been implemented by browsers, but the problem is different parts have been implemented by different browsers. I would put the text in the alt="" attribute, so that everyone can see it if the image doesn't work. The filter: alpha should work in the three major browsers.
Also, the -moz-opacity property has been abandoned, and is no longer considered valid CSS Level 2.1.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,878
OS: Vista, various linux distros
|
Re: A Little help with my CSS
ah, sorry i haven't brushed up on my CSS in a while and opacity and transparency have always been unclear subjects.
Cheers for clarifying, Jamey |
|
|
|
|
|
#5 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,431
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: A Little help with my CSS
I never really understood transparency either. I use Fireworks if I need shading done. :)
I have started reading the CSS Level 3 and the XHTML 2.0 Working Groups, but I haven't contributed anything because I still suck at that kind of coding.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#7 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,431
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: A Little help with my CSS
I found this today while on an unrelated quest: http://www.w3schools.com/Css/css_image_transparency.asp
I can't believe I have never found this page before.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#9 (permalink) |
|
Design Team Member
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista
|
Wanted to throw out another option that can be supported even by ie6. Although I have not tried it yet the link below goes through a tutorial on some of the capabilities of jQuery. Seems simple enough. I will be working it into my next project some how just so I can play around with it.
http://www.webdesignerwall.com/tutor...for-designers/ Check it out, hope it can help you.
__________________
|
|
|
|
|
|
#10 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,431
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: A Little help with my CSS
Useful for a more advanced developer, perhaps. I like to stay away from JavaScripts because mine have the unfortunate tendency to break when I least want them to.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#11 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,878
OS: Vista, various linux distros
|
Re: A Little help with my CSS
Yet again ditto... Anyway it's best practice to write unobtrusive javascript which your page does not rely on. The fade seems to be something you rely on so sticking away from JS is clever.
|
|
|
|
![]() |
| Thread Tools | |
|
|