troubleshooting Question

css property does not change on screen resolution

Avatar of derrida
derrida asked on
17 Comments2 Solutions504 ViewsLast Modified:
i have a code that change some properties when the rsolution change,2 properties does change but the first one does not.

in the regular css i have the code and if i change there the property does change.

i attach the code.

best regards

the jquery code:
var ScreenWidth=screen.width; 
	var ScreenHeight=screen.height; 
	var ScreenResolution=ScreenWidth+"x"+ScreenHeight; 
	//alert("your screen res is:" + ScreenResolution);
	if(ScreenResolution > '1025'){
	 $('#blog #blogpics #blgpicswrapper').css({'position' : 'relative' ,'left' : '20em'});
	 $('#skillswrapper').css({'left' : '50em'});
	 $('img#wanted').css({'left' : '40em'});

the regular css:
#blog #blogpics #blgpicswrapper{
		position: relative;
		left: .5em;
Sudaraka Wijesinghe
Web Application Programmer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros