Results 1 to 2 of 2

Text in Transparent Box

This is a discussion on Text in Transparent Box within the Web Design forums, part of the Web Designing & Development category; we create a div element (class="background") with a fixed height and width, a background image, and a border. Then we ...

  1. #1
    Senior Member Array akash's Avatar
    Join Date
    Oct 2008
    Location
    Heaven (Earth)
    Posts
    500

    Default Text in Transparent Box

    we create a div element (class="background") with a fixed height and width, a background image, and a border. Then we create a smaller div (class="transbox") inside the first div element. This div also have a fixed width, a background image, and a border. In addition we make this div transparent. Inside the transparent div, we add some text inside a p element.


    Code:
    <html>
    <head>
    <style type="text/css">
    div.background
          {
          width:500px;
          height:250px;
          background:url(klematis.jpg) repeat;
          border:2px solid black;
          }
    div.transbox
          {
          width:400px;
          height:180px;
          margin:30px 50px;
          background-color:#ffffff;
          border:1px solid black;
          /* for IE */
          filter:alpha(opacity=60);
          /* CSS3 standard */
          opacity:0.6;
          }
    div.transbox p
          {
          margin:30px 40px;
          font-weight:bold;
          color:#000000;
          }
    </style>
    </head>
    
    <body>
    
    <div class="background">
    <div class="transbox">
    <p>This is some text that is placed in the transparent box.
    This is some text that is placed in the transparent box.
    This is some text that is placed in the transparent box.
    This is some text that is placed in the transparent box.
    This is some text that is placed in the transparent box.
    </p>
    </div>
    </div>
    
    </body>
    </html>

  2. #2
    Senior Member Array msn90's Avatar
    Join Date
    May 2009
    Location
    india
    Posts
    146

    Thumbs up Re: Text in Transparent Box

    Thanks for sharing this akash. i'm a web designer. i think it is very hepful for me.



Similar Threads

  1. Creating a Transparent Image
    By akash in forum Web Design
    Replies: 10
    Last Post: 12-21-2010, 10:59 AM
  2. Anchor Text.
    By bradchawla in forum Search Engine Optimization
    Replies: 14
    Last Post: 04-24-2009, 10:37 AM
  3. make transparent scrollbar
    By akash in forum Web Design
    Replies: 0
    Last Post: 03-26-2009, 07:23 AM
  4. Permanent text links
    By Jason890gbn in forum Directory Solicitations & Announcements
    Replies: 0
    Last Post: 04-02-2008, 02:06 PM
  5. HTML text effects?
    By Peppermint-Dip in forum Web Design
    Replies: 0
    Last Post: 02-06-2008, 10:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO Forum | Web Hosting Forum | Websites For Sale |