css - How to prevent the foundation 5.x top-bar from going width 100% -


Currently, I'm trying to find a way to reduce the top-bar scope as what the row would do I am able to get this work w / a simple div class row by dividing the div squared big-12 column by dividing it to ny square top- But ... but it seems as if I did not wrap it in this way Can I / should. Can someone help me to reduce the complexity that can help?

* Note- Square my-custom-object is used to keep the background color in one place (sets the same color head-bar essentially)

< Pre> & lt; Div class = "my-custom-thing" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "large -12 column" & gt; & Lt; Nav class = "top-bar" & gt; & Lt; / Nav> & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;

If you want line and column properties you can go with it. X: Max-width line: 62.5m by default and padding of columns

It looks fine and I do not think it looks complex As is also

But if you are in these classes to control the width then I suggest the solution below.

  .my-custom-thing .topbar {width: 100%; Max-width: 62.5rem; Height: 30px; Background color: # 555; Margin: 0 px auto; }  
  & lt; Link href = "http://cdn.jsdelivr.net/foundation/5.4.3/css/ foundation.css" rel = "stylesheet" /> & Lt; Div class = "my-custom-thing" & gt; & Lt; Nav class = "top-bar" & gt; & Lt; / Nav> & Lt; / Div & gt;  


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -