- This topic is empty.
December 1, 2018 at 1:49 pm #279739kamie.richardsonParticipant
I was hoping to have someone take a look at my coding to figure out why my figures and #floatleft aren’t cooperating with eachother.
I have internal CSS (it’s for a class project, instructor requires it, approves of outside assistance/tutoring) but I also have a hosted site you can refer to: http://www.kamierenae.webhostingforstudents.com/cas206/final_project/tours.html
Thank you in advance!December 1, 2018 at 4:27 pm #279741BeverleyhParticipant
my figures and #floatleft aren’t cooperating with eachother.
What does “not cooperating” mean? What are they doing that is undesirable? What do you want them to do instead?
To attract more helpful responses, try reducing your code to the bare minimum to make it easier for us to troubleshoot. At the moment there is a lot of distraction and excess code. We don’t need your whole codebase and full page layout. We just need enough HTML and CSS to illustrate the issue with the floated element and figure.
Also consider using online placeholder images so that we’ve got something that loads.December 1, 2018 at 4:51 pm #279742kamie.richardsonParticipantDecember 2, 2018 at 1:57 am #279745BeverleyhParticipant
so that my #floatleft doesn’t skew the image and text positioning on the page
That still doesn’t clearly explain the problem. I removed the
figcaptionbut I still don’t immediately see what the issue is. Please describe what the undesirable behaviour is and also describe the desired outcome (state how they differ if necessary). Bear in mind that the device you’re looking at all this on isn’t going to be the same as what I and others are viewing on, and our choice of web browser or operating systems might be different still, with different font spacing, padding, margin, etc. We could see something very different to you. Vague terms such as “skew” or “cooperate” unfortunately aren’t very helpful in signposting the problem. Help us to help you.
The only thing I would guess at at this stage is the uncleared float that, when cleared, shows a light grey background around all the images and caption texts. Is that what we’re talking about? Are you wanting to know how to avoid the collapse? You might want to research “how to clear floats”. (During research you will come across hiding overflow or clearfix)
- The forum ‘CSS’ is closed to new topics and replies.