I am trying to get <div id="grid" wicket:id="grid">
to be a full screen image.
Can anyone tell me what I am doing wrong?
HTML:
<html>
<head>
<script type="text/javascript" src="scripts/jquery-1.4.2.js"></script>
</head>
<body>
<div id="grid" wicket:id="grid" >
</div>
</body>
</html>
Java:
WebMarkupContainer grid = new WebMarkupContainer("grid");
grid.add(new SimpleAttributeModifier("style", "width:100%; height:100%;background:url(partimages/" + imageName + ") no-repeat;"));
add(grid);