473,473 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

image inside star div

78 New Member
Expand|Select|Wrap|Line Numbers
  1. <style type="text/css">
  2. #star12 {
  3.  background: blue;
  4.  width: 80px;
  5.  height: 80px;
  6.  position: relative;
  7. }
  8. #star12:before, #star12:after {
  9.  content: "";
  10.  position: absolute;
  11.  top: 0;
  12.  left: 0;
  13.  height: 80px;
  14.  width: 80px;
  15.  background: blue;
  16. }
  17. #star12:before {
  18.  -webkit-transform: rotate(30deg);
  19.  -moz-transform: rotate(30deg);
  20.  -ms-transform: rotate(30deg);
  21.  -o-transform: rotate(30deg);
  22. }
  23. #star12:after {
  24.  -webkit-transform: rotate(60deg);
  25.  -moz-transform: rotate(60deg);
  26.  -ms-transform: rotate(60deg);
  27.  -o-transform: rotate(60deg);
  28. }
  29. </style>
  30.  
  31. <div id="star12"></div>
This code for a star type div. I want to dispalay an image inside this star div. Is it possible? please help me friends.
Jun 25 '13 #1
3 1786
gits
5,390 Recognized Expert Moderator Expert
you could set the position attribute and z-index like this:

Expand|Select|Wrap|Line Numbers
  1. <div id="star12">
  2.     <img style="position: absolute; z-index: 1000;" src="img_src">
  3. </div>
  4.  
Jul 8 '13 #2
Ammu
78 New Member
thanks
position: absolute; z-index: 1000;
it is working now
thank you so much @gits
Jul 9 '13 #3
gits
5,390 Recognized Expert Moderator Expert
no problem - that's what we are here for :)
Jul 9 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Abs | last post by:
Hi! I need to put an image inside a box, centering and resizing it to fit the box. The box is positioned and sized in the page using percent values. The problem is that I don't know how can I do...
2
by: TnaG | last post by:
I have an onClick on a TD. If I click on an image inside the TD, the onClick fires, however if i click anywhere else inside the TD nothing happens. Any ideas?
3
by: coolsti | last post by:
I need some help here. I am making an application which allows a user to look at a series of picture files one at a time, and enter the outcome of various visual tests to a database. The...
10
by: Raghavendra RAV | last post by:
Hi, I need to store an image from a Graphics object(.NET) inside a xml data island. Anyone might have came accross or have an idea how to do this. Please share. Thanks & Regards, Raghu, CSS...
3
by: Sachin | last post by:
If I have an image inside the RichTextBox, can I drag/move it inside the RichTextBox with the help of mouse, just like we can move any control on the form during design time. Please guide -- sachin
5
by: Arthur Hsu | last post by:
Hello, I have an ImageButton that refers to an external image. How can I keep that image's aspect ratio when I set the ImageButton's size to 120x120? TIA, Arthur
1
by: Chris Leffer | last post by:
Hi. I have an image inside a repeater that needs an onclick event, dynamically generated. I have this code on my .aspx: <IMG onclick='<%# "toggleDetails('" &...
0
by: Christian Schlemmer | last post by:
hi, in a DetailsView i have a image display. images i want to store in a seperate directory, but it a path is added to Bind update and delete is not working. just Bind makes my...
0
by: Meelis Lilbok | last post by:
Hi I have a following question Lets say we have a Panel and inside that panel a Image control on ASP.NET web site. Panel siz is 200x200px Image size is 400'x400
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.