- This topic is empty.
-
AuthorPosts
-
July 17, 2015 at 5:53 am #205208
brian
ParticipantHi everyone. I’ve inherited another designers code and I can’t seem to add additional images to the page without the entire page breaking up.
Looks like she has every image floating left and set to a relative position.
i need to add about 10 more images to the pages but each time i add anything, the entire layout breaks up. Any help would be appreciated!
link to original page…
http://www.brianlichty.com/dev/buildersdesign.com/model-homesHere is the test page with new images added…
http://www.brianlichty.com/dev/buildersdesign.com/model-homes-TEST.phpthanks!!
July 17, 2015 at 6:35 am #205209Paulie_D
MemberWell the first thing that jumps out at me is that you are re-using the ID “load”…that’s a big no-no right there.
I think what you are supposed to be doing is adding the divs (big/small etc) into the the section with a class of “projects” and an ID of “load”…not creating new sections.
July 17, 2015 at 6:40 am #205210brian
Participantthanks! that’s what I WAS doing. but the layout continued to break up. I understand reusing ID is bad and was actually working on it when you posted (sorry!). But adding the section tags has helped and the layout is starting to cooperate a bit more.
Why would this designer float everything left???
July 17, 2015 at 6:50 am #205215Paulie_D
MemberWhy would this designer float everything left???
Why not?
I agree you might not want to use float nowadays but it looks like a perfectly valid means of layout for what is a standard fixed proportion gallery layout.
It reacts very nicely and is pretty responsive.
July 17, 2015 at 7:02 am #205216brian
Participantthanks again. I guess once you move the top left element (or any element), everything else moves left to fill the gap (and sometimes the flow will push an element down as well?). It’s silly to work like this. There arent any divs holding the groups of pictures in place, and if I put a div in to hold them, it ALSO affects the layout. Driving me crazy.
July 17, 2015 at 7:18 am #205217brian
Participantby the way thanks for the help! Much appreciated.
So, do you think I could simply copy the entire picture layout (from div to /div) and paste below the exiting ones and essentially have the entire layout repeated below?
Well, it doesnt work??? Why not?
I have noooo clue.
July 17, 2015 at 7:34 am #205218Paulie_D
MemberSo, do you think I could simply copy the entire picture layout (from div to /div) and paste below the exiting ones and essentially have the entire layout repeated below?
Not sure what you mean by that.
If you wanted to you could copy the entire
<section>
with a class ofprojects
and copy that and paste a copy right below the first as long as it’s inside the div with a class ofmain-content
.Now as long as you change the ID (perhaps to “load2”) it should be fine…then all you would have to do it swap out a ‘wide’ image etc for the new content.
One thing though…I’m guessing that ID of ‘load’ is there as a JS hook, so you might want to find out what it’s for. You may have to edit the JS as well.
July 17, 2015 at 7:37 am #205219brian
Participantthanks. I hacked it up inline and made a few images float right and removed their right margin. works fine! not the cleanest solution, though. :)
Thanks for all of your help!
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.