Home Ask Login Register

Developers Planet

Your answer is one click away!

Fabio Caló February 2016

HTML and CSS margins

So again my problem seems simple but yet I havent been able to completly fix my problem. I am working on a website, I have made the body fit the full HTML yet I have a problem maybe with a right margin even though I have check them my page is too big to the right ans sends a div named container to the far right

var ddsmoothmenu={

//Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs):
arrowimages: {down:["downarrowclass", "./_images/down.gif", 23], right:["rightarrowclass", "./_images/right.gif", 6], left:['leftarrowclass', 'left.gif']},
transition: {overtime:300, outtime:300}, //duration of slide in/ out animation, in milliseconds
shadow: {enable:true, offsetx:5, offsety:5}, //enable shadow?
showhidedelay: {showdelay: 100, hidedelay: 200}, //set delay in milliseconds before sub menus appear and disappear, respectively

///////Stop configuring beyond here///////////////////////////

detectwebkit: navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1, //detect WebKit browsers (Safari, Chrome etc)
detectie6: document.all && !window.XMLHttpRequest,
css3support: window.msPerformance || (!document.all && document.querySelector), //detect browsers that support CSS3 box shadows (ie9+ or FF3.5+, Safari3+, Chrome etc)

getajaxmenu:function($, setting){ //function to fetch external page containing the panel DIVs
	var $menucontainer=$('#'+setting.contentsource[0]) //reference empty div on page that will hold menu
	$menucontainer.html("Loading Menu...")
		url: setting.contentsource[1], //path to external menu file
		async: true,
			$menucontainer.html('Error fetching content. Server Response: '+ajaxrequest.responseText)


robjez February 2016

You should remove margin-left: 21px; from your .sidebar1 element and margin-right: 21px; from .content element.

Post Status

Asked in February 2016
Viewed 2,541 times
Voted 5
Answered 1 times


Leave an answer

Quote of the day: live life

Devs Planet ®

2014-2016 www.devsplanet.com

Devs Planet © all rights reserved