Converting this to css.....

This is a discussion on "Converting this to css....." within the Web Page Design section. This forum, and the thread "Converting this to css..... are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 6th, 2008, 13:38
Up'n'Coming Member
Join Date: Oct 2007
Location: room
Age: 18
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Converting this to css.....

Hey...

This is probably the same situation like all my other questions..

So i have a plan to so people can choose there style sheet =D

But to do this, i need to convert these images into css..

I have done most of it already, but image wont display for some stupid reason..

Here is the html i need in css:
Code: Select all
         <img src="images/[_db.gif" align="left" height="450" style="position:absolute; left:10%;" />
         <img src="images/]_db.gif" align="right" height="450" style="position:absolute; right:10%;" />
I have tried and tried but it just wont work.
I need it in pure css, so im just left with <div id="example" class="example">

I have done this, and it just wont work =[

Code: Select all
.example {

background: #ffffff url ('../images/[_db.gif');
background-position: absolute; left: 10%; top:220px;
background-repeat: no-repeat; 
z-index:0;
}
Basically i dont see anything, or if i fidle around a bit i gte half the image -.-''

I know its going to be a stupid mistake like the last few times.. but please tell me i cannot see it =[
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 6th, 2008, 13:56
Junior Member
Join Date: Jan 2008
Location: The other side of your monitor
Age: 19
Posts: 29
Blog Entries: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Converting this to css.....

you wrote example as a class. Remove id="example" code and that will probably work.
Last Blog Entry: Disaster! (Aug 23rd, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 6th, 2008, 14:50
Junior Member
Join Date: Jun 2008
Location: Manchester, UK
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Converting this to css.....

Hey,

You havent indicated whether there is going to be any content in the div, but the background image declared in the css will not count as content for the div.
You will need to assign a width and height for the div if you need to display the entire image.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 9th, 2008, 11:19
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Converting this to css.....

As kudos says, put in the height and width of the div.
Code: Select all
.example {
background: #ffffff url ('../images/[_db.gif');
background-position: absolute; left: 10%; top:220px;
background-repeat: no-repeat; 
z-index:0;
height: 450px;
width: 400px;
}
Change the values to your own and try it.
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting UTF-8 characters to ISO darkling235 JavaScript Forum 2 Mar 23rd, 2008 22:40
converting an swf into an fla danny322 Flash & Multimedia Forum 5 Feb 2nd, 2008 08:32
converting to css sliz Web Page Design 5 Aug 28th, 2007 14:30
Converting Time Michaeln Databases 1 Jun 3rd, 2007 13:34
Converting JPEG to gif/bmp lalmm PHP Forum 2 May 7th, 2007 17:45


All times are GMT. The time now is 18:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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