Just wondering if it's okay to utilize the CSS code below to ensure the element adjusts to its parent's width.
.element {
position: absolute;
left: 0;
right: 0;
background-color: #ccc;
border-top: 1px solid #ddd;
}
We don't need to worry about IE versions older than 8.