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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 10-08-2008, 08:41 PM   #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/
zettabyte is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 10-09-2008, 04:59 PM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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;
the colouring wouldn't be to hard but you'd have to make sure you keep the values a little darker than you'd expect them to come out(because of their opacity)
Code:
color: #00FF00;
background-color: #333333;
you'd want it to be the same size as the image, now the transparency is hard to get right on all browsers(but this will cover a few[IE, FF and Opera]):
Code:
filter:alpha(opacity=85);
-moz-opacity:.85;
opacity:.85;
Of course changing the values would be necesary,
give it a go and post a link if you need more help.

Cheers,
Jamey
__________________

Myspace

Last edited by jamiemac2005; 10-09-2008 at 05:02 PM.
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-09-2008, 06:17 PM   #3 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 03:26 AM   #4 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 09:36 AM   #5 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 09:40 AM   #6 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,878
OS: Vista, various linux distros


Re: A Little help with my CSS

Quote:
Originally Posted by dm01 View Post
I use Fireworks if I need shading done. :)
Ditto haha.
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 05:22 PM   #7 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 06:09 PM   #8 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,878
OS: Vista, various linux distros


Re: A Little help with my CSS

Thanks for posting the link =]

Surprised i've never stumbled across it either, very helpful though.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-14-2008, 12:43 AM   #9 (permalink)
Design Team Member
 
Jaxo's Avatar
 
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista


Question Re: A Little help with my CSS

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.
Jaxo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-14-2008, 11:22 AM   #10 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-21-2008, 07:06 AM   #11 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,878
OS: Vista, various linux distros


Re: A Little help with my CSS

Quote:
Originally Posted by dm01 View Post
...mine have the unfortunate tendency to break when I least want them to.
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.
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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




All times are GMT -7. The time now is 02:19 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85