- This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
Viewing 12 posts - 1 through 12 (of 12 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I have a div with a width of 960px, Under this I have a couple of divs with the same width, but I need one div to be 100% of the page (for a slideshow porpuse), How do I do it?
see this: http://jsfiddle.net/ga7cE/1/
As you can see the blue line doesn’t show up.
(I don’t want to give the first div 100% and all inner divs 960px beside the slideshow, because it’s a cms and it’s too complicated.)
Thanks!
You make your first element 960px wide, your second element 100% wide (so the page width), and the third element 960px wide. No fixed width to your wrapper.
I don’t understand.
I want a full width div in the middle. Can you check this link http://jsfiddle.net/ga7cE/3/ ?
I want the div to be full width and to see all other divs.
Thanks!
Ok I see.
Because it’s Drupal CMS it will be difficult to edit the template, but I believe I’ll have to.
Thank You!
But I would probably do it this way if it’s only for graphical purpose: http://jsfiddle.net/fKJa9/.
But it’s for a slideshow with images
Oh, okay. So what @jamy_za said.
Ok thank you anyway. I like your solution for graphic purpose
you can accomplish this with your original code. You just need to account for the fact that the absolute positioned element is removed from the document flow. Given that it is a slideshow, you probably know it’s intended height. Just give the next element a top margin equal to the AP height (or the previous element a bottom margin).
I am having this same battle with Squarespace’s and cant find a solution! Just trying to get this image to stretch full width but my sites width of 960 restricts it.
Here is my question that I posted on Stackoverflow
http://stackoverflow.com/questions/16705367/creating-a-full-width-image
you could try something like [pen](http://codepen.io/unasAquila/pen/Kmury)
Thank You Hugo Giraudel so much for this trick , it help me alot