Highlighted

DIV does not expand all the way as browser windows is resized

Participant ,
Oct 31, 2020

Copy link to clipboard

Copied

Hello

Question: Why does the left column (orange) not expand all the way to the right when the browser window is made smaller by either dragging the computer browser window or viewed in a cell phone?

How to fix?
Test site to view code:  http://www.davidshelpsite.com

You have a redundant curly bracket in your css, directly before the #right_column media query below - marked in red: (Remove it and your right column WILL then be 100% of its parent container)

 

}
@Mediascreen and (max-width: 768px) { /* this stops the div from expanding beyond max-width */

#right_column{
flex-basis: 100%;
}
} /* Must have 2 curly brackets for media screen */

 

 

Views

49

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

DIV does not expand all the way as browser windows is resized

Participant ,
Oct 31, 2020

Copy link to clipboard

Copied

Hello

Question: Why does the left column (orange) not expand all the way to the right when the browser window is made smaller by either dragging the computer browser window or viewed in a cell phone?

How to fix?
Test site to view code:  http://www.davidshelpsite.com

You have a redundant curly bracket in your css, directly before the #right_column media query below - marked in red: (Remove it and your right column WILL then be 100% of its parent container)

 

}
@Mediascreen and (max-width: 768px) { /* this stops the div from expanding beyond max-width */

#right_column{
flex-basis: 100%;
}
} /* Must have 2 curly brackets for media screen */

 

 

Views

50

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 31, 2020 0
Participant ,
Oct 31, 2020

Copy link to clipboard

Copied

Correction...... Why does the right column (orange) not expand all the way to the right when the browser window is made smaller by either dragging the computer browser window or viewed in a cell phone?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 31, 2020 0
LEGEND ,
Oct 31, 2020

Copy link to clipboard

Copied

You have a redundant curly bracket in your css, directly before the #right_column media query below - marked in red: (Remove it and your right column WILL then be 100% of its parent container)

 

}
@Mediascreen and (max-width: 768px) { /* this stops the div from expanding beyond max-width */

#right_column{
flex-basis: 100%;
}
} /* Must have 2 curly brackets for media screen */

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 31, 2020 2
Participant ,
Oct 31, 2020

Copy link to clipboard

Copied

Thanks

doh.jpg

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 31, 2020 0
osgood_ LATEST
LEGEND ,
Oct 31, 2020

Copy link to clipboard

Copied

No problem, its part of what happens, regardless of skill level, a tiny oversight, which is not always obvious, can easily be missed.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 31, 2020 0