2023-01-28T12:51:59+00:00https://www.redditstatic.com/icon.png//r/csshelp.rsshttps://c.thumbs.redditmedia.com/tkYHLkGGqOBZXxGh.pngHelp for reddit's CSS/u/Ali26700https://www.reddit.com/user/Ali26700<!-- SC_OFF --><div class="md"><p><a href="https://codepen.io/ali-sabah/pen/RwBJKjb">https://codepen.io/ali-sabah/pen/RwBJKjb</a> </p> <p>pen code link </p> <p>&lt;body&gt;<br/> &lt;div class=&quot;p&quot;&gt;<br/> &lt;div class=&quot;c&quot;&gt;child&lt;/div&gt;<br/> &lt;/div&gt; </p> <p>p {<br/> background-color: #eee;<br/> width: 250px;<br/> height: 100px;<br/> }<br/> .c {<br/> background-color: blue;<br/> height: 20px;<br/> margin: 10px;<br/> }</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Ali26700"> /u/Ali26700 </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10miryz/hi_why_the_top_margin_between_the_child_and_the/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10miryz/hi_why_the_top_margin_between_the_child_and_the/">[comments]</a></span>t3_10miryz2023-01-27T11:38:07+00:002023-01-27T11:38:07+00:00hi why the top margin between the child and the container does not work pls help/u/Ali26700https://www.reddit.com/user/Ali26700<!-- SC_OFF --><div class="md"><p>1-when i give children margin-top=10px; the parent move also and the children will stay in the same place and will not move</p> <p>&lt;div class=&quot;parent&quot;&gt;<br/> &lt;div class=&quot;children&quot;&gt;one&lt;/div&gt;<br/> &lt;/div&gt;</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Ali26700"> /u/Ali26700 </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10mhy0k/hi_i_have_some_questions_pls_help/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10mhy0k/hi_i_have_some_questions_pls_help/">[comments]</a></span>t3_10mhy0k2023-01-27T10:45:10+00:002023-01-27T10:45:10+00:00hi i have some questions pls help?/u/Imscubbabishhttps://www.reddit.com/user/Imscubbabish<!-- SC_OFF --><div class="md"><p>I&#39;m learning how to use grid but have a quick question. With the footer it will do what I want when it&#39;s full screen. But when I use half a screen things get kinda out of place. I have to scroll down. Is it because my article is to big so it forces it down more? Or is there a way to display it without having to scroll down?</p> <p>&#x200B;</p> <p>HTML</p> <p><code>&lt;div class=&quot;container&quot;&gt;</code></p> <p><code>&lt;div class=&quot;header&quot;&gt;Header&lt;/div&gt;</code><br/> <code>&lt;div class=&quot;sidebar&quot;&gt;Sidebar&lt;/div&gt;</code><br/> <code>&lt;div class=&quot;nav&quot;&gt;Nav&lt;/div&gt;</code><br/> <code>&lt;div class=&quot;article&quot;&gt;Article</code><br/> <code>&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;</code><br/> <code>&lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur bibendum turpis quis interdum semper. Sed at pharetra neque, nec lacinia diam. Suspendisse quis faucibus mi, aliquam porttitor ipsum. Vivamus condimentum eros id mattis pharetra. Duis varius eros nibh. Donec a venenatis eros. Fusce in mauris massa. Donec est metus, rhoncus eu leo sed, aliquet posuere nisl.&lt;/p&gt;</code><br/> <code>&lt;p&gt;Cras ut ex in nibh accumsan ullamcorper. Fusce rutrum, metus id porta porttitor, leo ipsum congue velit, eu hendrerit lectus nisi a odio. Pellentesque tristique eros id nibh finibus euismod. Cras suscipit volutpat elit eget pulvinar. Vivamus at blandit leo. Aenean sodales ex non massa efficitur, et egestas neque dapibus. In consequat hendrerit ex, nec finibus magna faucibus eu. Aliquam a libero non erat sollicitudin condimentum. In ac fringilla nisi. Sed pharetra ut turpis id luctus. Proin posuere tortor ac tempus luctus. Donec vitae est et neque faucibus posuere. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.&lt;/p&gt;</code><br/> <code>&lt;/div&gt;</code><br/> <code>&lt;div class=&quot;footer&quot;&gt;Footer&lt;/div&gt;</code> </p> <p>css</p> <p>&#x200B;</p> <p>body, html {</p> <p>height: 100%; margin: 0; }</p> <p>.container { text-align: center; height: 100%; padding: 16px; box-sizing: border-box; }</p> <p>.container div { padding: 15px; font-size: 32px; font-family: Helvetica; font-weight: bold; color: white; border-radius: 15px; }</p> <p>.header { background-color: #FFDE22; }</p> <p>.sidebar { background-color: #FF7755; }</p> <p>.nav { background-color: #00DDFF; }</p> <p>.article { background-color: #bccbde; }</p> <p>.article p { font-size: 18px; font-family: sans-serif; color: white; text-align: left; }</p> <p>.footer { background-color: #393f4d; }</p> <p>.container {</p> <p>display:grid; gap: 0.5em; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: &quot;header header header&quot; &quot;sidebar nav nav&quot; &quot;sidebar article article&quot; &quot;footer footer footer&quot;</p> <p>}</p> <p>.header {grid-area: header;} .sidebar {grid-area: sidebar;} .nav {grid-area: nav} .article {grid-area: article;} .footer {grid-area: footer;}</p> <p><a href="/u/media">u/media</a> (max-width: 50em) { .container { grid-template-areas: &quot;header header header&quot; &quot;sidebar nav nav&quot; &quot;article article article&quot; &quot;footer footer footer&quot; } }</p> <p>I got the layout I want but I want my footer to not scroll down. Is it just the font size that messing it up?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Imscubbabish"> /u/Imscubbabish </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10maxdz/need_help_fitting_my_footer/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10maxdz/need_help_fitting_my_footer/">[comments]</a></span>t3_10maxdz2023-01-27T03:29:24+00:002023-01-27T03:29:24+00:00Need help fitting my Footer/u/Enddahttps://www.reddit.com/user/Endda<!-- SC_OFF --><div class="md"><p>I updated my wordpress website the other day and now I&#39;m seeing a white space added above thumbnail images for some reason.</p> <p><a href="https://imgur.com/cP1oeyW">https://imgur.com/cP1oeyW</a></p> <p>I tried the following code. . .</p> <p><code>.wc-block-grid__product-image {</code></p> <pre><code>`padding-top: 0px !important;` </code></pre> <p><code>}</code></p> <p>but it doesn&#39;t seem to do anything. If i change that to 100px then I do see that white space being extended. . .but setting this to 0px doesn&#39;t seem to remove the white space at all</p> <p>website is located here - <a href="https://playstorefinder.com/">https://playstorefinder.com/</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Endda"> /u/Endda </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10m49hg/how_to_remove_this_white_space/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10m49hg/how_to_remove_this_white_space/">[comments]</a></span>t3_10m49hg2023-01-26T22:18:12+00:002023-01-26T22:18:12+00:00how to remove this white space?/u/Seedthrowrhttps://www.reddit.com/user/Seedthrowr<!-- SC_OFF --><div class="md"><p>I apologize in advance for not communicating this problem correctly - but here goes. I have piece of HTML code that I have to repeat over and over again. Typically - I&#39;d just copy the code - however this time the code is going to change from time to time - so I&#39;m wondering if I could simply create a DIV that hosts the code and then update the CSS once rather then update 4500+ pages. The code is relatively simple - but I&#39;m very new to CSS and so I don&#39;t really know what to do with it. </p> <p>Here&#39;s an example of the code I would be repeating:</p> <pre><code>&lt;ul class=&quot;Resources&quot;&gt; &lt;li&gt;&lt;a href=&quot;/333/&quot;&gt;333&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;/444/&quot;&gt;444&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;/555/&quot;&gt;555&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>So is it even possible?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Seedthrowr"> /u/Seedthrowr </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10m28f9/using_a_a_reoccurring_div_across_multiple_pages/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10m28f9/using_a_a_reoccurring_div_across_multiple_pages/">[comments]</a></span>t3_10m28f92023-01-26T20:54:59+00:002023-01-26T20:54:59+00:00Using a a reoccurring DIV across multiple pages?/u/angelo_mabhttps://www.reddit.com/user/angelo_mab<!-- SC_OFF --><div class="md"><p>Hello, </p> <p>Does any one have an idea or has a direction to point me to to recreate or just understand how the HUMBLE BRAG section works from this website?<br/> <a href="https://www.ethansuero.com/">https://www.ethansuero.com/</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/angelo_mab"> /u/angelo_mab </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10m44qc/advice_on_recreating_humble_brag_section/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10m44qc/advice_on_recreating_humble_brag_section/">[comments]</a></span>t3_10m44qc2023-01-26T22:12:38+00:002023-01-26T22:12:38+00:00Advice on recreating HUMBLE BRAG section/u/Morty137_Spacehttps://www.reddit.com/user/Morty137_Space<!-- SC_OFF --><div class="md"><p><a href="https://glitch.com/%7Esuper-recipe-card">https://glitch.com/~super-recipe-card</a></p> <p>I&#39;m building a good modern recipe card design for my homework. It spends me 5-6 hours.</p> <p>Any suggestions? I want more evaluation to improve my design.</p> <p>I&#39;m new to the design field but I&#39;m familiar with CSS.</p> <p>I&#39;m not satisfied with the flipping animation now because it is not very natural somehow. But I have no idea how to improve or what I want.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Morty137_Space"> /u/Morty137_Space </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10l4qde/a_recipe_card_and_flip_animation_css_need_help/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10l4qde/a_recipe_card_and_flip_animation_css_need_help/">[comments]</a></span>t3_10l4qde2023-01-25T17:50:09+00:002023-01-25T17:50:09+00:00A recipe card and flip animation CSS, need help/u/tulpanhttps://www.reddit.com/user/tulpan<!-- SC_OFF --><div class="md"><p>Just made a new banner and background for <a href="https://www.reddit.com/r/roadcam/">r/roadcam</a> and now i am stuck with this white stripe, that is kinda out of place. Your helpful advice will be much appreciated.<br/> <a href="https://i.imgur.com/a0uQQi7.png">https://i.imgur.com/a0uQQi7.png</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/tulpan"> /u/tulpan </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10l356b/how_do_i_change_the_color_of_big_horizontal_white/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10l356b/how_do_i_change_the_color_of_big_horizontal_white/">[comments]</a></span>t3_10l356b2023-01-25T16:46:03+00:002023-01-25T16:46:03+00:00How do i change the color of big horizontal white stripe underneath subreddit name? /r/roadcam/u/ilovespaceheyhttps://www.reddit.com/user/ilovespacehey&#32; submitted by &#32; <a href="https://www.reddit.com/user/ilovespacehey"> /u/ilovespacehey </a> <br/> <span><a href="/r/spacehey/comments/10kqe2e/multiple_images_in_one_area/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10kqfe4/multiple_images_in_one_area/">[comments]</a></span>t3_10kqfe42023-01-25T04:50:52+00:002023-01-25T04:50:52+00:00Multiple Images in One Area??/u/englajanzehttps://www.reddit.com/user/englajanze<!-- SC_OFF --><div class="md"><p>Hello! Im working on a website and have a picture in the header. When the screen is big I want the whole picture showing, but as the screen size is getting smaller I want a specific part of the picture to show. Im not sure how to do this in CSS and would be so happy if someone could help me.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/englajanze"> /u/englajanze </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10k2lm0/responsive_picture_in_css/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10k2lm0/responsive_picture_in_css/">[comments]</a></span>t3_10k2lm02023-01-24T10:37:29+00:002023-01-24T10:37:29+00:00Responsive Picture in CSS/u/luistimmyhttps://www.reddit.com/user/luistimmy<!-- SC_OFF --><div class="md"><p>Hello guys, maybe someone can help me. I&#39;m using the following CSS for my site background:</p> <pre><code>body {background:linear-gradient(to bottom right, rgba(0,0,0,1) 0%, rgba(58,1,40,1) 100%);} </code></pre> <p>It works great, but I notice that have a little issue with my iPhone 13 Pro Max when I visit the site horizontally, it shows a blank space on the left and right side. Screenshot: <a href="https://prnt.sc/yXZC5dF7m-EI">https://prnt.sc/yXZC5dF7m-EI</a></p> <p>This doesn&#39;t happen when I use a background image, for example:</p> <pre><code>background: #0e0301 url(&quot;https://domain.com/image.jpg&quot;) fixed center top; </code></pre> <p>But I don&#39;t want to use the image, I want to use the linear-gradient. Any idea how to fix this?</p> <p>This is the (NSFW) site URL if you want to test it: <a href="https://bestlistofporn.com">https://bestlistofporn.com</a></p> <p>Thank you in advance :)</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/luistimmy"> /u/luistimmy </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10js5vs/how_to_fix_this_backgroundlineargradient_issue/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10js5vs/how_to_fix_this_backgroundlineargradient_issue/">[comments]</a></span>t3_10js5vs2023-01-24T00:20:43+00:002023-01-24T00:20:43+00:00How to fix this background:linear-gradient issue?/u/_kjothttps://www.reddit.com/user/_kjot<!-- SC_OFF --><div class="md"><p>Hello, I have a question about CSS behavior.</p> <p><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;p style=&quot;line-height: 1em; margin: 1em; background: rgba(0, 0, 0, 0.1);&quot;&gt; aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccccccccccccccccccccccc ddddddddddddddddddddddddddddddddddddddddddd eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee &lt;/p&gt; &lt;p style=&quot;line-height: 2em; margin: 1em; background: rgba(0, 0, 0, 0.1);&quot;&gt; aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccccccccccccccccccccccc ddddddddddddddddddddddddddddddddddddddddddd eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee &lt;/p&gt; &lt;p style=&quot;line-height: 2; margin: 1em; background: rgba(0, 0, 0, 0.1);&quot;&gt; aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccccccccccccccccccccccc ddddddddddddddddddddddddddddddddddddddddddd eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee &lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></p> <p>The second and third paragraphs look the same in wide windows, Chrome in Windows for example.</p> <p>But once I change the browser to mobile mode, they look different.</p> <p>Why?</p> <p>Images: <a href="https://twitter.com/_kjot/status/1555282986782040064?s=20&amp;t=I49qTffVXZc_ZhTdj2u6VQ">https://twitter.com/_kjot/status/1555282986782040064?s=20&amp;t=I49qTffVXZc_ZhTdj2u6VQ</a></p> <p>In my understanding, both 2em and 2 mean twice of the default font size. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/line-height">https://developer.mozilla.org/en-US/docs/Web/CSS/line-height</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/_kjot"> /u/_kjot </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10jhgp7/question_why_this_css_behaves_differently_in_wide/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10jhgp7/question_why_this_css_behaves_differently_in_wide/">[comments]</a></span>t3_10jhgp72023-01-23T17:05:14+00:002023-01-23T17:05:14+00:00Question: Why this CSS behaves differently in wide window and mobile window/u/pipermaru_https://www.reddit.com/user/pipermaru_<!-- SC_OFF --><div class="md"><p>Hi! Is there a way to change the color of the buttons in the Enhancer for YouTube browser extension? I&#39;m not a programmer or developer or anything so most of my css code is borrowed. Going for a peaches and cream theme, so I was hoping to make them a dark orange color instead of the grey they are now.</p> <p>This is what&#39;s supposed to help with the color: <a href="https://gitlab.com/-/snippets/2078210">Custom Theme CSS of &quot;Enhancer For YouTube&quot; ($2078210) · Snippets · Snippets · GitLab</a> but using it doesn&#39;t do anything and leaves the buttons the same color. Are they just not editable? Would love any help on this ^w^</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/pipermaru_"> /u/pipermaru_ </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10izmes/enhancer_for_youtube_css_help/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10izmes/enhancer_for_youtube_css_help/">[comments]</a></span>t3_10izmes2023-01-23T00:59:08+00:002023-01-23T00:59:08+00:00Enhancer for Youtube CSS help/u/CaptainAbraham82https://www.reddit.com/user/CaptainAbraham82<!-- SC_OFF --><div class="md"><p>In a simple web-based game I&#39;m developing, I have a div with a background image (a map) and a variety of game pieces that are arranged (via divs with position: absolute) on that image. On every computer regardless of browser type, the page is <a href="https://campussuite-storage.s3.amazonaws.com/prod/1558523/0672826e-a84b-11e7-9779-0ae3e1d9783c/2539657/06b6fe6c-9aad-11ed-aacf-0ab0bbc20645/file/CapPC.jpg">rendered exactly as I would expect.</a> But on any phone of any kind regardless of screen size, the background image is <a href="https://campussuite-storage.s3.amazonaws.com/prod/1558523/0672826e-a84b-11e7-9779-0ae3e1d9783c/2539656/06b6f7fa-9aad-11ed-8a40-0ab0bbc20645/file/CapPhone.jpg">shifted 40 pixels to the left</a>, and I have no idea why. (see links for pics) </p> <p>The problem is probably some goofy line of CSS I&#39;ve messed up, but can anyone think of a reason a background image would be shifted like that on a phone browser but not on a PC? </p> <p>Thanks!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/CaptainAbraham82"> /u/CaptainAbraham82 </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10ixwhe/background_image_being_shifted_40_pixels_left_on/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10ixwhe/background_image_being_shifted_40_pixels_left_on/">[comments]</a></span>t3_10ixwhe2023-01-22T23:38:57+00:002023-01-22T23:38:57+00:00Background Image being shifted 40 pixels left on phone browsers but not on PC browsers?/u/DaCosmicOnehttps://www.reddit.com/user/DaCosmicOne<!-- SC_OFF --><div class="md"><p>I&#39;m developing an angular app and my css skills suck. I&#39;m printing my cards out from my db.json file and its printing onto my landing page. heres my css</p> <pre><code>/* Grid container */ .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); grid-gap: 10px; } /* Grid items */ .grid-item { width: 500px; height: 500px; display: flex; align-items: center; justify-content: center; background-color: rgba(255, 255, 255, 0.8); } /* Image */ img { max-width: 100%; max-height: 100%; } .landing-page-title{ color:black; position: absolute; top: 14%; left: 64%; width: 15%; font-size: 2.3rem; } .card-container { display: flex; justify-content: center; margin-top: 60px; } .card { position: absolute; width: 100px; height: 530px; margin: 0px; padding: 0px; top: 22%; left: 56%; min-width: 150px; max-width: 500px; width: 100%; } .card-content { margin:5px; padding:5px; text-align:center; color: black; margin-block-start: 0.5em !important; margin-block-end: 0.5em !important; } </code></pre> <p>If sombody can please tell me what i&#39;m doing wrong I would LOVE YOU LONG TIME!!!!!</p> <p>I have&#39;nt loaded my images yet but the data just prints over itself all on one freakin card. heres my html</p> <pre><code>&lt;app-header&gt;&lt;/app-header&gt; &lt;div *ngIf=&quot;defaultView&quot;&gt; &lt;div class=&quot;landing-page&quot;&gt; &lt;div class=&quot;landing-page-content&quot;&gt; &lt;img class=&quot;landing-page&quot; src=&quot;../../assets/wallpaper/homemade.jpg&quot;&gt; &lt;h3 class=&quot;landing-page-title&quot;&gt;My Tasty Menu&lt;/h3&gt; &lt;div class=&quot;grid-container&quot;&gt; &lt;div class=&quot;card-container&quot;&gt; &lt;div class=&quot;card&quot; *ngFor=&quot;let item of items&quot;&gt; &lt;div class=&quot;card-content&quot;&gt; &lt;h4&gt;{{item.name}}&lt;/h4&gt; &lt;br&gt; &lt;h6&gt;{{item.price}}&lt;/h6&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div *ngIf=&quot;!defaultView&quot;&gt; &lt;!-- Other Views Content --&gt; &lt;/div&gt; </code></pre> <h1>Plese Help Me Before I eat my own toe nails out of frustration</h1> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/DaCosmicOne"> /u/DaCosmicOne </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10i7grf/my_card_info_is_staking_ontop_of_each_other_in/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10i7grf/my_card_info_is_staking_ontop_of_each_other_in/">[comments]</a></span>t3_10i7grf2023-01-22T01:27:37+00:002023-01-22T01:27:37+00:00my card info is staking ontop of each other in one card, why cant i get seperate cards to display in a 3 column grid? please help/u/slowsadhttps://www.reddit.com/user/slowsad<!-- SC_OFF --><div class="md"><p>Hi everyone, </p> <p>I need your help! I have a tricky situation with two buttons that I need to be next to each other in one line and also at the end of the container. The problem is, that the buttons are wrapped in divs and I can&#39;t edit the html to wrap those divs into a shared parent container. Which leaves me to force them next to each other with the power of css. </p> <p>Codepen: <a href="https://codepen.io/aki-sol/pen/Expoqxy">https://codepen.io/aki-sol/pen/Expoqxy</a></p> <p>I haven&#39;t found a robust way to do that yet. One concern I also have with forcing them next to each other with position absolute is that depending on what language the page is displayed in the button lengths vary, which makes it difficult to figure out an absolute position for both.</p> <p>I would GREATLY appreciate any help and guidance!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/slowsad"> /u/slowsad </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10i55eu/tricky_positioning_problem_need_css_magic/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10i55eu/tricky_positioning_problem_need_css_magic/">[comments]</a></span>t3_10i55eu2023-01-21T23:38:55+00:002023-01-21T23:38:55+00:00Tricky Positioning Problem - Need CSS Magic!!/u/onesmellyspurgushttps://www.reddit.com/user/onesmellyspurgus<!-- SC_OFF --><div class="md"><p>Having a helluva time trying to apply height:100vh to the &lt;body&gt; tag of this thing. If anyone knows what the issue is I&#39;ll love you long time.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/onesmellyspurgus"> /u/onesmellyspurgus </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10hk18y/bootstrap_and_aspnet_web_application/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10hk18y/bootstrap_and_aspnet_web_application/">[comments]</a></span>t3_10hk18y2023-01-21T05:49:33+00:002023-01-21T05:49:33+00:00Bootstrap and asp.net web application/u/luistimmyhttps://www.reddit.com/user/luistimmy<!-- SC_OFF --><div class="md"><p>Hello guys! Can someone please help me fix this icon before the category title?</p> <p>URL: <a href="https://bestlistofporn.com/top-sex-cam-sites">https://bestlistofporn.com/top-sex-cam-sites</a></p> <p>Note: NSFW</p> <p>I need to align this icon with the category title:</p> <p><a href="https://prnt.sc/Lwfyu6JBvm6g">https://prnt.sc/Lwfyu6JBvm6g</a></p> <p>I have to go down the icon a little bit or go up the category title next to the icon.</p> <p>I tried everything (of my knowledge) but without success, I&#39;m kind of a newbie :)</p> <p>Thank you in advance!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/luistimmy"> /u/luistimmy </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10grtn2/please_help_me_fix_this_icon_alignment/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10grtn2/please_help_me_fix_this_icon_alignment/">[comments]</a></span>t3_10grtn22023-01-20T08:39:53+00:002023-01-20T08:39:53+00:00Please help me fix this icon alignment/u/shabobblehttps://www.reddit.com/user/shabobble<!-- SC_OFF --><div class="md"><p>Hello all - </p> <p>I&#39;m having trouble figuring out the best way to align my &quot;learn more&quot; links at the end of columns and keep them responsive so there&#39;s no screen size where links in the same row are not on the same line. </p> <p>I&#39;ve tried with both flex and grid and can&#39;t seem to figure it out. I&#39;ve set up the code from my section in a pen here: <a href="https://codepen.io/shabobble/pen/JjBOQRG">https://codepen.io/shabobble/pen/JjBOQRG</a>.</p> <p>I&#39;m looking for an effect like the &quot;Contact Sales&quot; buttons on <a href="https://Pantheon.io">Pantheon.io</a> (<a href="https://pantheon.io/plans/pricing">https://pantheon.io/plans/pricing</a>), but even theirs do not stay aligned when you start shrinking the screen.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/shabobble"> /u/shabobble </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10ge8c3/aligning_links_at_ends_of_columns/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10ge8c3/aligning_links_at_ends_of_columns/">[comments]</a></span>t3_10ge8c32023-01-19T21:43:37+00:002023-01-19T21:43:37+00:00Aligning Links at ends of columns/u/vetlemakthttps://www.reddit.com/user/vetlemakt<!-- SC_OFF --><div class="md"><p><a href="http://gimseil.no">http://gimseil.no</a> </p> <p>Hello /csshelp!<br/> I am trying to get my club&#39;s badge (top left) to sort of dip a bit below the white navbar, and have managed that - in a way.<br/> What I am trying for is something like <a href="http://gimseil.no/wp-content/uploads/2023/png1.png">this</a><br/> What I&#39;ve got so far though, is <a href="http://gimseil.no/wp-content/uploads/2023/png2.png">this</a></p> <p>I have achieved that by making a .SVG logo with transparent background, and adding some padding to the top by this custom css: </p> <p>.style-dark .navbar-brand .logo-skinnable &gt; * {</p> <p>margin-top: 20px;</p> <p>} </p> <p>This, however, makes the entire navbar thicker (taller) than what I want. How can I keep the navbar slim while still offsetting the logo a bit below?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/vetlemakt"> /u/vetlemakt </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10fnrj9/help_with_my_clubs_logo/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10fnrj9/help_with_my_clubs_logo/">[comments]</a></span>t3_10fnrj92023-01-19T00:48:28+00:002023-01-19T00:48:28+00:00Help with my club's logo/u/shabobblehttps://www.reddit.com/user/shabobble<!-- SC_OFF --><div class="md"><p>Hello - </p> <p>I&#39;m trying to create a circle of eleven circles around a center circle with arrows pointing out from the center circle at each of the eleven outer circles, and also have it be responsive. I&#39;ve done a lot of Googling and managed to create the circle of circles around a center circle in a few different ways, but where I&#39;m having trouble is creating the arrows in such a way so that they can be resized on smaller screens to still be pointing at the correct circles. </p> <p>Something like this JSFiddle (<a href="https://jsfiddle.net/ItayGrudev/3jqryc1m/">https://jsfiddle.net/ItayGrudev/3jqryc1m/</a>) or this CodePen (<a href="https://codepen.io/KittyGiraudel/pen/vEJXGm">https://codepen.io/KittyGiraudel/pen/vEJXGm</a>) [neither of these are mine], but I need arrows pointing out from the center at the outer circles.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/shabobble"> /u/shabobble </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10fhwbj/responsive_concentric_circular_diagram/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10fhwbj/responsive_concentric_circular_diagram/">[comments]</a></span>t3_10fhwbj2023-01-18T20:33:27+00:002023-01-18T20:33:27+00:00Responsive Concentric Circular Diagram/u/shabobblehttps://www.reddit.com/user/shabobble<!-- SC_OFF --><div class="md"><p>I&#39;m in the process of making sure that the elements of the website I&#39;m working on are responsive, and I&#39;m noticing that as I shrink the dimensions in Chrome Dev Tools, at a certain breakpoint the entire &lt;html&gt; element begins to shrink towards the left and it&#39;s not taking up the full width of the window. I&#39;ve checked through all the elements for some stray margin that may be causing issues, but there isn&#39;t one. It seems like the issue might be related to some element or another being too large, as when I put a <code>display: none</code> on some elements that seem to be extending outside of the area highlighted by the &lt;html&gt; element, then the screen dimensions can go smaller before the shrinkage starts again, but it still does happen. </p> <p>I fear I&#39;m missing something obvious. Here&#39;s an example of what I&#39;m looking at. I can share more specific pictures as needed. </p> <p><a href="https://imgur.com/uERD2Vg">https://imgur.com/uERD2Vg</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/shabobble"> /u/shabobble </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10f88gg/responsive_help/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10f88gg/responsive_help/">[comments]</a></span>t3_10f88gg2023-01-18T14:07:39+00:002023-01-18T14:07:39+00:00Responsive Help/u/luistimmyhttps://www.reddit.com/user/luistimmy<!-- SC_OFF --><div class="md"><p>Can someone please help me fix this responsive issue?</p> <p>URL: <a href="https://bestlistofporn.com/discounts">https://bestlistofporn.com/discounts</a></p> <p>IMPORTANT: ADULT CONTENT</p> <p>Desktop looks fine: <a href="https://prnt.sc/R-eAqZ2ut7ZG">https://prnt.sc/R-eAqZ2ut7ZG</a></p> <p>But not on some devices.</p> <p>Tablet: <a href="https://prnt.sc/Ssyh8WL4TIy8">https://prnt.sc/Ssyh8WL4TIy8</a></p> <p>Mobile: <a href="https://prnt.sc/V2tI2bGlzMJb">https://prnt.sc/V2tI2bGlzMJb</a></p> <p>What&#39;s the best way to fix this issue? Or at least, centering the content.</p> <p>Thank you in advance, guys!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/luistimmy"> /u/luistimmy </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10f6jn9/how_to_fix_this_responsive_issue/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10f6jn9/how_to_fix_this_responsive_issue/">[comments]</a></span>t3_10f6jn92023-01-18T12:45:20+00:002023-01-18T12:45:20+00:00How to fix this responsive issue?/u/AnxiousMMAhttps://www.reddit.com/user/AnxiousMMA<!-- SC_OFF --><div class="md"><p>Hi all,</p> <p>We&#39;re moving from M1 to M2, and our guide pages have lost a load of styling in the process.</p> <p><strong>I want to create a &quot;lip&quot; or &quot;overlap&quot; so that people can immediately see the page H1 above the fold when landing on the page.</strong></p> <p>I&#39;m pretty new to CSS and HTML.</p> <ol> <li>Draft 1 - I attempted stealing our existing code using inspect element, but the background colour isn&#39;t working:<a href="https://codepen.io/drew-campbell-griffiths/pen/VwBMoGO">https://codepen.io/drew-campbell-griffiths/pen/VwBMoGO</a></li> <li>Draft 2 - This is one I attempted myself, but few issues with it![<a href="https://codepen.io/drew-campbell-griffiths/pen/wvxrVpM%5D(https://codepen.io/drew-campbell-griffiths/pen/wvxrVpM)">https://codepen.io/drew-campbell-griffiths/pen/wvxrVpM](https://codepen.io/drew-campbell-griffiths/pen/wvxrVpM)</a></li> </ol> <p><strong>Any ideas why draft 1 isn&#39;t showing a white background please?</strong></p> <p>&#x200B;</p> <p><a href="https://seoandmma.files.wordpress.com/2023/01/cricketbatheader.png"><strong>It should look like this on desktop</strong></a><strong>-</strong> (just not quite as big ! (pls scroll down to see the overlap)</p> <p>&#x200B;</p> <p>Thank you!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/AnxiousMMA"> /u/AnxiousMMA </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10f6ggy/trying_to_create_a_whiteoverlap_over_the_bottom/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10f6ggy/trying_to_create_a_whiteoverlap_over_the_bottom/">[comments]</a></span>t3_10f6ggy2023-01-18T12:40:42+00:002023-01-18T12:40:42+00:00Trying to create a white-overlap, over the bottom of a header-image - to display the page's H1/u/lizard_69yourmomhttps://www.reddit.com/user/lizard_69yourmom<!-- SC_OFF --><div class="md"><p>Disclaimer, I don&#39;t know any formal CSS or html vocabulary, sorry.</p> <p>I know that I want to hide a button so that it&#39;s removed from the document, and what needs to be done to achieve this. I just don&#39;t know how to execute it. Here are the details:</p> <p>Inside of an unordered list class titled &quot;navigation actions&quot; (which presents as a horizontal row of buttons), I want to edit ONLY the final list item element (the fifth and final button) so that the element style property is set to display: none. I know this would hide the button because I tested it using web inspector and was successful.</p> <p>My issue comes down to formatting the CSS. I can only manage to hide the entire list/row of buttons, not the specific button/list item. Here is my weak attempt that never stood a chance at working:</p> <p><code>#main</code></p> <p><code>.user.home.profile,</code></p> <p><code>navigation.actions: type(5)</code><code>element.style</code> <code>{</code></p> <p><code>display: none;</code></p> <p><code>}</code></p> <p>Here&#39;s the &quot;Full XPath&quot;: /html/body/div[1]/div[2]/div[2]/div[2]/ul/li[5]/a</p> <p>Here&#39;s the &quot;JS Path&quot;: document.querySelector(&quot;#main &gt; div.user.home.profile &gt; ul &gt; li:nth-child(5) &gt; a&quot;)</p> <p>These &quot;Paths&quot; don&#39;t mean anything to me, but maybe they can help clarify. I hope this is coherent.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/lizard_69yourmom"> /u/lizard_69yourmom </a> <br/> <span><a href="https://www.reddit.com/r/csshelp/comments/10eug9s/i_want_to_removehide_a_button_that_i_think_is/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/csshelp/comments/10eug9s/i_want_to_removehide_a_button_that_i_think_is/">[comments]</a></span>t3_10eug9s2023-01-18T01:45:58+00:002023-01-18T01:45:58+00:00I want to remove/hide a button that I think is also an element. How do I execute this with CSS?