Click here to Skip to main content
12,355,591 members (70,834 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: CSS SSL
css:

.ContentArea{float:left;width:984px;height:auto;background:url(../images/mid_bg.jpg) repeat-y;}

when i apply above class for div in IE i got error "This page has in secured content"

only when i use above class o.w working
Posted 30-Sep-12 22:54pm
Edited 30-Sep-12 23:39pm
v5
Comments
Zoltán Zörgő 1-Oct-12 5:04am
   
1) In what browser?
2) What exactly do you want to achieve?
3) What is not working in it?
4) How the context look like? A CSS class in general is meaningless on it's own.
5) Have you tried to debug the css with IE Developer toolbar in IE, or the tools you can find for the browser you want to test in?
..so, please improve your question and give us lot more details, if you want help.
oh and what on Earth has ssl to do with css?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi Harsha,


.ContentArea
{
float:left;
width:984px;
height:auto;
background-image:url("images/mid_bg.jpg");
background-repeat:repeat-y;

}

Ref Link: http://www.w3.org/TR/CSS2/colors.html[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

You are mixing http and https. I suppose your images reside on a folder where you have not enabled https, but your page is under https.
  Permalink  
Comments
harshada3 1-Oct-12 5:25am
   
yes my folder is not in https but i want it in https for particular pages
Zoltán Zörgő 1-Oct-12 6:13am
   
Well, several browsers will warn you for security reasons. You can not do anything against it, just to move all content under https or http. And not mixing them at all. Of course in your case you will have to server at least this image under both http and https. It is up to you how you do this, but I think the simplest way is to copy this image under the same folder and make the css appropriate.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 1 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100