Results 1 to 5 of 5
-
14th Mar 2012, 11:20 AM #1OPBannedWebsite's:
Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.comHow to code image in css and se in wordpress post?
I'm working on some project and using wordpress as cms..
I managed to learn and fix few things but I want to know this.
How to code image in css and se in wordpress post??
For example:
Code:http://www.oneddl.eu/tv-shows/southland-s04e09-hdtv-xvid-2hd/
I think it's coded in css and used on posts using <span> </span>
but can anybody say how? or correct me if I'm wrong with tut?
EDIT: Not ripping or has anything to do with Oneddl theme.. Just for learning I used it as an example.
Thank you!BattleDuty Reviewed by BattleDuty on . How to code image in css and se in wordpress post? I'm working on some project and using wordpress as cms.. I managed to learn and fix few things but I want to know this. How to code image in css and se in wordpress post?? For example: http://www.oneddl.eu/tv-shows/southland-s04e09-hdtv-xvid-2hd/ Rating: 5
-
14th Mar 2012, 11:27 AM #2Retired NinJaWebsite's:
loledhard.comIt is done using CSS sprites
http://css-tricks.com/css-sprites/
OG IMAGE > http://images.oneddl.eu/site-img/one...ddl_sprite.png
CSS code
Code:infoimg { background-position: -359px -283px; } infoimg, oneclickimg, downloadimg { background: url("http://images.oneddl.eu/site-img/oneddl/oneddl_sprite.png") no-repeat transparent; display: block; height: 23px; width: 192px; }
if u write tag <oneclickimg /> it will show u
PS..Done Just for the sake of educational purpose.
You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!
-
14th Mar 2012, 11:29 AM #3MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comcheck the css file
Code:infoimg, oneclickimg, downloadimg { display: block; height: 23px; width: 192px; background:url(http://images.oneddl.eu/site-img/oneddl/oneddl_sprite.png) no-repeat; } infoimg{ background-position: -359px -283px; }
-
14th Mar 2012, 11:34 AM #4OPBannedWebsite's:
Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.com^^Thanks! but any chance of fresh example with steps?
Just for educational purpose.
-
14th Mar 2012, 11:54 AM #5Retired NinJaWebsite's:
loledhard.comSteps:
1. Join all images with some software
2. Assign Background to every element u would use for displaying spritted image
//sprite1, sprite2{background: url(x.jpg) no-repeat top left;display: block;}
3. Assign the possition from which ur element starts in spritted image
//sprite1{ background-position: 0 0; width: 125px; height: 150px; }
Sprited Image (x.jpg) : http://i.imgur.com/znxpb.jpg
Input Image1 (1.jpg) : http://i.imgur.com/MmMzv.jpg
Input Image2 (2.jpg) : http://i.imgur.com/9IvmW.jpg
simple example1 (xxxxx.html)
Code:<head><style> sprite1, sprite2{background: url(x.jpg) no-repeat top left;display: block;} sprite1{ background-position: 0 0; width: 125px; height: 150px; } sprite2{ background-position: 0 -200px; width: 125px; height: 150px; } </style></head> <body> <sprite1> XXX</sprite1> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <sprite2 /> </body>
Code:<head><style> .sprite1, .sprite2{background: url(x.jpg) no-repeat top left;display: block;} .sprite1{ background-position: 0 0; width: 125px; height: 150px; } .sprite2{ background-position: 0 -200px; width: 125px; height: 150px; } </style></head> <body> <div class="sprite2"> XXX</div> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <div class="sprite1"> XXX</div> </body>
You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Hiring] code for Right click Image uploader
By cool.guy.prince in forum Completed TransactionsReplies: 2Last Post: 26th Jun 2011, 05:44 AM -
Wordpress Post Image Help
By _brazzO in forum Webmaster DiscussionReplies: 5Last Post: 8th Oct 2010, 11:47 AM -
Insert Image Code
By warezboy in forum vBulletinReplies: 12Last Post: 9th Jun 2010, 06:16 PM -
Insert Image CODE
By tom247 in forum Web Application/Script SupportReplies: 3Last Post: 9th Jun 2010, 05:04 AM -
Image Upload in php. Code snippet #2
By SplitIce in forum Tutorials and GuidesReplies: 5Last Post: 31st Oct 2009, 07:40 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...