Can some please help, this is a style line for a photo w/ atext line that is sup
ID: 3611742 • Letter: C
Question
Can some please help, this is a style line for a photo w/ atext line that is suppose to be under it, however it keeps showingup to the right. #photobox {float: right;text-align: center; font-size: 8pt; font-style: italic;background-color: rgb(255, 215, 71); margin: 10px 0px 10px10px;border-style: solid; border-color: black;border-width: 1 4 4 1; display: block} Can some please help, this is a style line for a photo w/ atext line that is suppose to be under it, however it keeps showingup to the right. #photobox {float: right;text-align: center; font-size: 8pt; font-style: italic;background-color: rgb(255, 215, 71); margin: 10px 0px 10px10px;
border-style: solid; border-color: black;border-width: 1 4 4 1; display: block}
Explanation / Answer
If the value of float is right the image or text moves to theright in the parent element.
If it is none (default) the image or the text will be displayedjust where it occurs in the text.
If there is too little space on a line for the floating element,it will jump down on the next line, and continue until a line hasenough space
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.