July 8, 20215 yr I have the following header menu bar and I need to move the menu and logo to the right so it is centerd. Can anyone help me? CSS code: * { box-sizing: border-box; } Body { background: url(/images/srtc-graph.jpg); font-family: Arial, Helvetica, sans-serif; margin: 0; padding: 0; } li { list-style: none; } a { text-decoration: none; } #navigation { display: flex; align-items: center; background-color: #FFF; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); border-bottom: 0.05px solid black; } #navigation ul { margin-left: 20px 0; display: flex; } #navigation li { margin: 30px 0; } #navigation a { margin-left: 5px; margin-right: 5px; margin: 10px 0; padding: 8px 16px; font-family: 'Arial narrow'; font-size: 13px; font-weight: bold; color: black; } .line { border-right: 1px solid black; } #navigation > p > a { margin-left: 30px; margin: 0 40px; padding: 0; font-size: 13px; } #page-container { width: 50%; margin: 0 auto; } .a { margin-bottom: 100px; display: flex; flex-direction: column; background-color: white; border: 1px solid black; border-radius: 5px; } .a > h2 { margin: 25px 0 5px 0; margin-left: 50px; margin-top: 40px; margin-bottom: 17px; text-align: center; font-size: 20px; color: black; height: 20px; } .b { display: flex; margin: 0 auto; margin-bottom: 0px; } .b > ul { padding: 0; margin-top: 5px; margin-bottom: 80px; } .b > ul > li { margin: 10px 0; display: flex; border: 1px solid black; box-shadow: 0 2px 3px #999; } .b > ul > li > a { width: 230px; font-size: 14px; padding: 10px 0; padding: 5px 15px; color: black; } .b > ul > li > a:hover { background-color: #E6EAF5; } .footer { font-family: 'Arial'; padding: 30px 0; font-size: 15px; background-color: white; text-align: center; border-top: 0.2px solid black; width: 100%; margin-top: -100px; } .footer a { color: black; text-decoration: underline; }
July 8, 20215 yr Author Here's my HTML: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>SRTC Member's Area!</title> <link rel="stylesheet" type="text/css" href="css/stylemain.css"> </head> <body> <div class="navigation-menu"> <div id ="navigation"> <div class="logo"> <img src="images\srtc-logo.jpg"> </div> <ul> <li><a href="members-menu.htm" class="line">Home</a></li> <li><a href="bullish.htm" class="line">Most Bullish Charts</a></li> <li><a href="bearish.htm" class="line">Most Bearish Charts</a></li> <li><a href="irish.htm" class="line">Irish Shares</a></li> <li><a href="uk.htm" class="line">UK Shares</a></li> <li><a href="euro.htm"class="line" >European Shares</a></li> <li><a href="us.htm" class="line">US Shares</a></li> <li><a href="trading.htm" class="line">Trading Room</a></li> <li><a href="market.htm">Market Topics</a></li> </ul> <p><a href="mailto:info@sextonreadsthecharts.com">info@sextonreadsthecharts.com</a></p> </div> </div> <div id="page-container"> <div class="a"> <h2>WELCOME TO THE MEMBERS AREA!</h2> <div class="b"> <ul> <li><a class="active" href="members-menu.htm">Home</a></li> <li><a class="active" href="bullish.htm">Most Bullish Shares</a></li> <li><a class="active" href="bearish.htm">Most Bearish Shares</a></li> <li><a class="active" href="#irish">Irish Shares</a></li> <li><a class="active" href="uk.htm">UK Shares</a></li> <li><a class="active" href="euro.htm">European Shares</a></li> <li><a class="active" href="us.htm">US Shares</a></li> <li><a class="active" href="trading.htm">Trading Room</a></li> <li><a class="active" href="market.htm">Market Topics</a></li> </ul> </div> </div> </div> <div class="footer"> Copyright © 2019 All rights reserved | Designed by <a href="https://www.cosmicitsolutions.com/">Cosmic IT Solutions</a> | Disclaimer </div> </body> </html>
July 8, 20215 yr No, you need to post the code somewhere so we can see the live page. @robbydesigns margin: 0 auto; is standard css for centering block elements.
July 8, 20215 yr Author 1 hour ago, robbydesigns said: Hard to tell without seeing your HTML but #navigation 'margin: 0 auto;' ? <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>SRTC Member's Portal!</title> <link rel="stylesheet" href="css\stylemain.css"> </head> <body> <div class="navigation-menu"> <div id ="navigation"> <div class="logo"> <img src="images\srtc-logo.jpg"> </div> <ul> <li><a href="members-menu.htm" class="line">Home</a></li> <li><a href="bullish.htm" class="line">Most Bullish Charts</a></li> <li><a href="bearish.htm" class="line">Most Bearish Charts</a></li> <li><a href="irish.htm" class="line">Irish Shares</a></li> <li><a href="uk.htm" class="line">UK Shares</a></li> <li><a href="euro.htm"class="line" >European Shares</a></li> <li><a href="us.htm" class="line">US Shares</a></li> <li><a href="trading.htm" class="line">Trading Room</a></li> <li><a href="market.htm">Market Topics</a></li> </ul> <p><a href="mailto:info@sextonreadsthecharts.com">info@sextonreadsthecharts.com</a></p> </div> </div> <div id="page-container"> <div class="a"> <h2>WELCOME TO THE MEMBERS AREA!</h2> <div class="b"> <ul> <li><a class="active" href="members-menu.htm">Home</a></li> <li><a class="active" href="bullish.htm">Most Bullish Shares</a></li> <li><a class="active" href="bearish.htm">Most Bearish Shares</a></li> <li><a class="active" href="#irish">Irish Shares</a></li> <li><a class="active" href="uk.htm">UK Shares</a></li> <li><a class="active" href="euro.htm">European Shares</a></li> <li><a class="active" href="us.htm">US Shares</a></li> <li><a class="active" href="trading.htm">Trading Room</a></li> <li><a class="active" href="market.htm">Market Topics</a></li> </ul> </div> </div> </div> <div class="footer"> Copyright © 2019 All rights reserved | Designed by <a href="https://www.cosmicitsolutions.com/">Cosmic IT Solutions</a> | Disclaimer </div> </body> </html> <!-- partial --> </body> </html>
July 8, 20215 yr Author 28 minutes ago, fisicx said: No, you need to post the code somewhere so we can see the live page. @robbydesigns margin: 0 auto; is standard css for centering block elements. Like where?
July 8, 20215 yr Author 1 hour ago, davep said: why not put the html and css into something like https://codepen.io/ ? How do I use codepen?
July 8, 20215 yr 7 minutes ago, niallm1974 said: How do I use codepen? sign up for a free account then paste the html from within the body in the html part and the the css in the css part then you get a preview of the document then copy the link and post it here
July 8, 20215 yr Author 3 hours ago, davep said: sign up for a free account then paste the html from within the body in the html part and the the css in the css part then you get a preview of the document then copy the link and post it here I am with Hawkhost and the alignment is still out of place. I want to have my header alignment similar the the screenshot on top. I also want to move the header menu and logo to the right so they are centre aligned. Can you help? <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>SRTC Member's Portal!</title> <link rel="stylesheet" href="css\stylemain.css"> </head> <body> <div class="navigation-menu"> <div id ="navigation"> <div class="logo"> <img src="images\srtc-logo.jpg"> </div> <ul> <li><a href="members-menu.htm" class="line">Home</a></li> <li><a href="bullish.htm" class="line">Most Bullish Charts</a></li> <li><a href="bearish.htm" class="line">Most Bearish Charts</a></li> <li><a href="irish.htm" class="line">Irish Shares</a></li> <li><a href="uk.htm" class="line">UK Shares</a></li> <li><a href="euro.htm"class="line" >European Shares</a></li> <li><a href="us.htm" class="line">US Shares</a></li> <li><a href="trading.htm" class="line">Trading Room</a></li> <li><a href="market.htm">Market Topics</a></li> </ul> <p><a href="mailto:info@sextonreadsthecharts.com">info@sextonreadsthecharts.com</a></p> </div> </div> <div id="page-container"> <div class="a"> <h2>WELCOME TO THE MEMBERS AREA!</h2> <div class="b"> <ul> <li><a class="active" href="members-menu.htm">Home</a></li> <li><a class="active" href="bullish.htm">Most Bullish Shares</a></li> <li><a class="active" href="bearish.htm">Most Bearish Shares</a></li> <li><a class="active" href="#irish">Irish Shares</a></li> <li><a class="active" href="uk.htm">UK Shares</a></li> <li><a class="active" href="euro.htm">European Shares</a></li> <li><a class="active" href="us.htm">US Shares</a></li> <li><a class="active" href="trading.htm">Trading Room</a></li> <li><a class="active" href="market.htm">Market Topics</a></li> </ul> </div> </div> </div> <div class="footer"> Copyright © 2019 All rights reserved | Designed by <a href="https://www.cosmicitsolutions.com/">Cosmic IT Solutions</a> | Disclaimer </div> </body> </html> </body> </html> Body { background: url(/images/srtc-graph.jpg); font-family: Arial, Helvetica, sans-serif; margin: 0; padding: 0; } li { list-style: none; } a { text-decoration: none; } #navigation { display: flex; align-items: center; background-color: #FFF; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); border-bottom: 0.05px solid black; } #navigation ul { display: inline-block; text-align: center; } #navigation li { margin: 30px 0; display: inline; } #navigation a { margin-left: 45px; margin-right: 5px; margin: 10px 0; padding: 8px 16px; font-family: 'Arial narrow'; font-size: 13px; font-weight: bold; color: black; } .line { border-right: 1px solid black; } #navigation > p > a { margin-left: 30px; margin: 0 40px; padding: 0; font-size: 13px; } #page-container { width: 50%; margin: 0 auto; } .a { margin-bottom: 100px; display: flex; flex-direction: column; background-color: white; border: 1px solid black; border-radius: 5px; } .a > h2 { margin: 25px 0 5px 0; margin-top: 40px; margin-bottom: 17px; text-align: center; font-size: 20px; color: black; height: 20px; } .b { display: flex; margin: 0 auto; margin-bottom: 0px; } .b > ul { padding: 0; margin-top: 5px; margin-bottom: 80px; } .b > ul > li { margin: 10px 0; display: flex; border: 1px solid black; box-shadow: 0 2px 3px #999; } .b > ul > li > a { width: 230px; font-size: 14px; padding: 10px 0; padding: 5px 15px; color: black; } .b > ul > li > a:hover { background-color: #E6EAF5; } .footer { font-family: 'Arial'; padding: 30px 0; font-size: 15px; background-color: white; text-align: center; border-top: 0.2px solid black; width: 100%; margin-top: -100px; } .footer a { color: black; text-decoration: underline; } Edited July 8, 20215 yr by niallm1974
July 8, 20215 yr Please post a link to the site. Makes it so much easier to find the problem. Consider also most of your visitors will be using a phone so you need a responsive menu.
July 9, 20215 yr Author 14 hours ago, fisicx said: Please post a link to the site. Makes it so much easier to find the problem. Consider also most of your visitors will be using a phone so you need a responsive menu. https://srtcmembers-beta.com/members-menu.htm
July 9, 20215 yr Author 15 hours ago, fisicx said: Please post a link to the site. Makes it so much easier to find the problem. Consider also most of your visitors will be using a phone so you need a responsive menu. https://srtcmembers-beta.com/members-menu.htm Can you tell me how to move the logo a bit over to the right without affecting the current Member's menu bar in the header? I also need to move the main heading to the centre. <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>SRTC Member's Portal!</title> <link rel="stylesheet" href="css\stylemain.css"> </head> <body> <div class="navigation-menu"> <div id ="navigation"> <div class="logo"><img src="images\srtc-logo.jpg" width="77" height="71"></div> <ul> <ul> <ul> <ul> <ul> <li><a href="members-menu.htm" class="line">Home</a></li> <li><a href="bullish.htm" class="line">Most Bullish Charts</a></li> <li><a href="bearish.htm" class="line">Most Bearish Charts</a></li> <li><a href="irish.htm" class="line">Irish Shares</a></li> <li><a href="uk.htm" class="line">UK Shares</a></li> <li><a href="euro.htm"class="line" >European Shares</a></li> <li><a href="us.htm" class="line">US Shares</a></li> <li><a href="trading.htm" class="line">Trading Room</a></li> <li><a href="market.htm">Market Topics</a> <a href="mailto:info@sextonreadsthecharts.com">info@sextonreadsthecharts.com</a></ul></ul></ul></ul></ul></div> </div> <div id="page-container"> <div class="a"> <h2>WELCOME TO THE MEMBERS AREA!</h2> <div class="b"> <ul> <li><a class="active" href="members-menu.htm">Home</a></li> <li><a class="active" href="bullish.htm">Most Bullish Shares</a></li> <li><a class="active" href="bearish.htm">Most Bearish Shares</a></li> <li><a class="active" href="#irish">Irish Shares</a></li> <li><a class="active" href="uk.htm">UK Shares</a></li> <li><a class="active" href="euro.htm">European Shares</a></li> <li><a class="active" href="us.htm">US Shares</a></li> <li><a class="active" href="trading.htm">Trading Room</a></li> <li><a class="active" href="market.htm">Market Topics</a></li> </ul> </div> </div> </div> <div class="footer"> Copyright © 2019 All rights reserved | Designed by <a href="https://www.cosmicitsolutions.com/">Cosmic IT Solutions</a> | Disclaimer </div> </body> </html> </body> </html> Body { background: url(/images/srtc-graph.jpg); font-family: Arial, Helvetica, sans-serif; margin: 0; padding: 0; } li { list-style: none; } a { text-decoration: none; } #navigation { display: flex; align-items: center; background-color: #FFF; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); border-bottom: 0.05px solid black; } #navigation ul { display: inline-block; text-align: center; } #navigation li { margin: 30px 0; display: inline; } #navigation a { margin-left: 45px; margin-right: 5px; margin: 10px 0; padding: 8px 16px; font-family: 'Arial narrow'; font-size: 13px; font-weight: bold; color: black; } .line { border-right: 1px solid black; } #navigation > p > a { margin-left: 30px; margin: 0 40px; padding: 0; font-size: 13px; } #page-container { width: 50%; margin: 0 auto; } .a { margin-bottom: 100px; display: flex; flex-direction: column; background-color: white; border: 1px solid black; border-radius: 5px; } .a > h2 { margin: 25px 0 5px 0; margin-top: 40px; margin-bottom: 17px; text-align: center; font-size: 20px; color: black; height: 20px; } .b { display: flex; margin: 0 auto; margin-bottom: 0px; } .b > ul { padding: 0; margin-top: 5px; margin-bottom: 80px; } .b > ul > li { margin: 10px 0; display: flex; border: 1px solid black; box-shadow: 0 2px 3px #999; } .b > ul > li > a { width: 230px; font-size: 14px; padding: 10px 0; padding: 5px 15px; color: black; } .b > ul > li > a:hover { background-color: #E6EAF5; } .footer { font-family: 'Arial'; padding: 30px 0; font-size: 15px; background-color: white; text-align: center; border-top: 0.2px solid black; width: 100%; margin-top: -100px; } .footer a { color: black; text-decoration: underline; }
July 9, 20215 yr @niallm1974 - you don't need to keep posting the code. We can inspect the code using browser tools. But back to your question. You have a very strange code structure. The main menu is 5 nested unordered lists! The logo is on the left because that's how you have styled it. You have a navigation-menu class that doesn't do anything containing a navigation is which a flexbox. This style puts the logo on the left and the menu on the right. The 5 nested lists each have 40px padding on the left (because that's the default style). Basically, it's a bit of a mess. First thing to do is sort out you menu list - so you only have one UL and no padding. Then try this: .navigation-menu { width: 100%; text-align: center; background-color: #0666a3 } #navigation { display: inline-block; margin: 0 auto; padding: 3px; background-color: #8ebf42 } Use borders and backgrounds so you can see where each element is on the page. You also need to think about how the page will look on a phone as that's the device most of your members will be using.
July 9, 20215 yr Author 51 minutes ago, fisicx said: @niallm1974 - you don't need to keep posting the code. We can inspect the code using browser tools. But back to your question. You have a very strange code structure. The main menu is 5 nested unordered lists! The logo is on the left because that's how you have styled it. You have a navigation-menu class that doesn't do anything containing a navigation is which a flexbox. This style puts the logo on the left and the menu on the right. The 5 nested lists each have 40px padding on the left (because that's the default style). Basically, it's a bit of a mess. First thing to do is sort out you menu list - so you only have one UL and no padding. Then try this: .navigation-menu { width: 100%; text-align: center; background-color: #0666a3 } #navigation { display: inline-block; margin: 0 auto; padding: 3px; background-color: #8ebf42 } Use borders and backgrounds so you can see where each element is on the page. You also need to think about how the page will look on a phone as that's the device most of your members will be using. <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>SRTC Member's Portal!</title> <link rel="stylesheet" href="css\stylemain.css"> </head> <body> <div class="navigation-menu"> <div id ="navigation"> <div class="logo"><img src="images\srtc-logo.jpg" width="77" height="71"></div> <ul> <ul> <ul> <ul> <ul> <li><a href="members-menu.htm" class="line">Home</a></li> <li><a href="bullish.htm" class="line">Most Bullish Charts</a></li> <li><a href="bearish.htm" class="line">Most Bearish Charts</a></li> <li><a href="irish.htm" class="line">Irish Shares</a></li> <li><a href="uk.htm" class="line">UK Shares</a></li> <li><a href="euro.htm"class="line" >European Shares</a></li> <li><a href="us.htm" class="line">US Shares</a></li> <li><a href="trading.htm" class="line">Trading Room</a></li> <li><a href="market.htm">Market Topics </a> <a href="mailto:info@sextonreadsthecharts.com"> info@sextonreadsthecharts.com</a></ul></ul></ul></ul></ul></div> </div> <div id="page-container"> <div class="a"> <blockquote> <blockquote> <blockquote> <blockquote> <h2>WELCOME TO THE MEMBERS AREA!</h2> </blockquote> </blockquote> </blockquote> </blockquote> <div class="b"> <ul> <li><a class="active" href="members-menu.htm">Home</a></li> <li><a class="active" href="bullish.htm">Most Bullish Shares</a></li> <li><a class="active" href="bearish.htm">Most Bearish Shares</a></li> <li><a class="active" href="#irish">Irish Shares</a></li> <li><a class="active" href="uk.htm">UK Shares</a></li> <li><a class="active" href="euro.htm">European Shares</a></li> <li><a class="active" href="us.htm">US Shares</a></li> <li><a class="active" href="trading.htm">Trading Room</a></li> <li><a class="active" href="market.htm">Market Topics</a></li> </ul> </div> </div> </div> <div class="footer"> Copyright © 2019 All rights reserved | Designed by <a href="https://www.cosmicitsolutions.com/">Cosmic IT Solutions</a> | Disclaimer </div> </body> </html> </body> </html> 54 minutes ago, fisicx said: @niallm1974 - you don't need to keep posting the code. We can inspect the code using browser tools. But back to your question. You have a very strange code structure. The main menu is 5 nested unordered lists! The logo is on the left because that's how you have styled it. You have a navigation-menu class that doesn't do anything containing a navigation is which a flexbox. This style puts the logo on the left and the menu on the right. The 5 nested lists each have 40px padding on the left (because that's the default style). Basically, it's a bit of a mess. First thing to do is sort out you menu list - so you only have one UL and no padding. Then try this: .navigation-menu { width: 100%; text-align: center; background-color: #0666a3 } #navigation { display: inline-block; margin: 0 auto; padding: 3px; background-color: #8ebf42 } Use borders and backgrounds so you can see where each element is on the page. You also need to think about how the page will look on a phone as that's the device most of your members will be using. Can you tell me what HTML I need to remove from my code: <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>SRTC Member's Portal!</title> <link rel="stylesheet" href="css\stylemain.css"> </head> <body> <div class="navigation-menu"> <div id ="navigation"> <div class="logo"><img src="images\srtc-logo.jpg" width="77" height="71"></div> <ul> <ul> <ul> <ul> <ul> <li><a href="members-menu.htm" class="line">Home</a></li> <li><a href="bullish.htm" class="line">Most Bullish Charts</a></li> <li><a href="bearish.htm" class="line">Most Bearish Charts</a></li> <li><a href="irish.htm" class="line">Irish Shares</a></li> <li><a href="uk.htm" class="line">UK Shares</a></li> <li><a href="euro.htm"class="line" >European Shares</a></li> <li><a href="us.htm" class="line">US Shares</a></li> <li><a href="trading.htm" class="line">Trading Room</a></li> <li><a href="market.htm">Market Topics </a> <a href="mailto:info@sextonreadsthecharts.com"> info@sextonreadsthecharts.com</a></ul></ul></ul></ul></ul></div> </div> <div id="page-container"> <div class="a"> <blockquote> <blockquote> <blockquote> <blockquote> <h2>WELCOME TO THE MEMBERS AREA!</h2> </blockquote> </blockquote> </blockquote> </blockquote> <div class="b"> <ul> <li><a class="active" href="members-menu.htm">Home</a></li> <li><a class="active" href="bullish.htm">Most Bullish Shares</a></li> <li><a class="active" href="bearish.htm">Most Bearish Shares</a></li> <li><a class="active" href="#irish">Irish Shares</a></li> <li><a class="active" href="uk.htm">UK Shares</a></li> <li><a class="active" href="euro.htm">European Shares</a></li> <li><a class="active" href="us.htm">US Shares</a></li> <li><a class="active" href="trading.htm">Trading Room</a></li> <li><a class="active" href="market.htm">Market Topics</a></li> </ul> </div> </div> </div> <div class="footer"> Copyright © 2019 All rights reserved | Designed by <a href="https://www.cosmicitsolutions.com/">Cosmic IT Solutions</a> | Disclaimer </div> </body> </html> </body> </html>
July 9, 20215 yr Stop posting the code in your posts! You need to remove almost all of it. For example this should be your menu: <ul> <li><a href="members-menu.htm" class="line">Home</a></li> <li><a href="bullish.htm" class="line">Most Bullish Charts</a></li> <li><a href="bearish.htm" class="line">Most Bearish Charts</a></li> <li><a href="irish.htm" class="line">Irish Shares</a></li> <li><a href="uk.htm" class="line">UK Shares</a></li> <li><a href="euro.htm" class="line" >European Shares</a></li> <li><a href="us.htm" class="line">US Shares</a></li> <li><a href="trading.htm" class="line">Trading Room</a></li> <li><a href="market.htm">Market Topics</a></li> </ul> There are so many things wrong with your code and styling. I'd focus on getting the content right and making sure it work on a phone. Align the header on the left and make it sticky so it stays put when you scroll down on a phone.
July 9, 20215 yr Author 49 minutes ago, fisicx said: Stop posting the code in your posts! You need to remove almost all of it. For example this should be your menu: <ul> <li><a href="members-menu.htm" class="line">Home</a></li> <li><a href="bullish.htm" class="line">Most Bullish Charts</a></li> <li><a href="bearish.htm" class="line">Most Bearish Charts</a></li> <li><a href="irish.htm" class="line">Irish Shares</a></li> <li><a href="uk.htm" class="line">UK Shares</a></li> <li><a href="euro.htm" class="line" >European Shares</a></li> <li><a href="us.htm" class="line">US Shares</a></li> <li><a href="trading.htm" class="line">Trading Room</a></li> <li><a href="market.htm">Market Topics</a></li> </ul> There are so many things wrong with your code and styling. I'd focus on getting the content right and making sure it work on a phone. Align the header on the left and make it sticky so it stays put when you scroll down on a phone. Ok here's what I've just done: <div class="navigation-menu"> <div id ="navigation"> <div class="logo"><img src="images\srtc-logo.jpg" width="77" height="71"></div> <ul> <li><a href="members-menu.htm" class="line">Home</a></li> <li><a href="bullish.htm" class="line">Most Bullish Charts</a></li> <li><a href="bearish.htm" class="line">Most Bearish Charts</a></li> <li><a href="irish.htm" class="line">Irish Shares</a></li> <li><a href="uk.htm" class="line">UK Shares</a></li> <li><a href="euro.htm"class="line" >European Shares</a></li> <li><a href="us.htm" class="line">US Shares</a></li> <li><a href="trading.htm" class="line">Trading Room</a></li> <li><a href="market.htm">Market Topics </a> <a href="mailto:info@sextonreadsthecharts.com"> info@sextonreadsthecharts.com</a> </ul> </div> </div> <div id="page-container"> <div class="a"> <h2>WELCOME TO THE MEMBERS AREA!</h2> <div class="b"> <ul> <li><a class="active" href="members-menu.htm">Home</a></li> <li><a class="active" href="bullish.htm">Most Bullish Shares</a></li> <li><a class="active" href="bearish.htm">Most Bearish Shares</a></li> <li><a class="active" href="irish.htm">Irish Shares</a></li> <li><a class="active" href="uk.htm">UK Shares</a></li> <li><a class="active" href="euro.htm">European Shares</a></li> <li><a class="active" href="us.htm">US Shares</a></li> <li><a class="active" href="trading.htm">Trading Room</a></li> <li><a class="active" href="market.htm">Market Topics</a></li> </ul> </div> </div> </div>
July 9, 20215 yr Don’t post your code! We can see the code on your site. That’s a good start but you can make it so much simpler. Do some research on the <nav> html tag You can then remove the classes from the list and anchors. All you need in the CSS is nav li a {style:attribute;}
July 9, 20215 yr Author 28 minutes ago, fisicx said: Don’t post your code! We can see the code on your site. That’s a good start but you can make it so much simpler. Do some research on the <nav> html tag You can then remove the classes from the list and anchors. All you need in the CSS is nav li a {style:attribute;} I need to move the logo from the top to the left of the Home link on the header menu. Also I need to extend the border line at the bottom of the header? How do I do these? Edited July 9, 20215 yr by niallm1974
July 9, 20215 yr Floats, flexbox, display:grid - all of these will work. Centering is more difficult with a variable width container. Add a border to the container div for a full width line. You are putting far to much effort into something that doesn't matter. Especially as it won't ever work on a mobile phone.
July 10, 20215 yr Author 19 hours ago, fisicx said: Floats, flexbox, display:grid - all of these will work. Centering is more difficult with a variable width container. Add a border to the container div for a full width line. You are putting far to much effort into something that doesn't matter. Especially as it won't ever work on a mobile phone. All I need is to move the logo and reduce the height of the header. Can you help me? CSS code: Body { background: url(/images/srtc-graph.jpg); font-family: Arial, Helvetica, sans-serif; margin: 0; padding: 0; } li { list-style: none; } a { text-decoration: none; } .navigation-menu { width: 100%; text-align: center; background-color: white; border-bottom: 1px solid black; } #navigation { display: inline-block; margin: 0 auto; padding: 50px; background-color: white; } #navigation ul { display: inline-block; text-align: center; } #navigation li { margin: 30px 0; display: inline; } #navigation a { margin-left: 45px; margin-right: 5px; margin: 10px 0; padding: 8px 16px; font-family: 'Arial narrow'; font-size: 13px; font-weight: bold; color: black; } .line { border-right: 1px solid black; } #navigation > p > a { margin-left: 10px; margin: 0 40px; padding: 0; font-size: 13px; } #page-container { width: 50%; margin: 0 auto; } .a { margin-bottom: 100px; max-width: 6000px; display: flex; flex-direction: column; background-color: white; border: 1px solid black; border-radius: 5px; } .a > h2 { margin: 25px 0 5px 0; margin-top: 40px; margin-bottom: 17px; text-align: center; font-size: 20px; color: black; height: 20px; } .b { display: flex; margin: 0 auto; margin-bottom: 0px; } .b > ul { padding: 0; margin-top: 5px; margin-bottom: 80px; } .b > ul > li { margin: 10px 0; display: flex; border: 1px solid black; box-shadow: 0 2px 3px #999; } .b > ul > li > a { width: 230px; font-size: 14px; padding: 10px 0; padding: 5px 15px; color: black; } .b > ul > li > a:hover { background-color: #E6EAF5; } .footer { font-family: 'Arial'; padding: 30px 0; font-size: 15px; background-color: white; text-align: center; border-top: 0.2px solid black; width: 100%; margin-top: -100px; } .footer a { color: black; text-decoration: underline; }
July 10, 20215 yr Yes, but not by answering forum posts. Your code is a real mess, it’s going to take a while to fix everything. You will need to send me your site files. send me your email address via a PM.
July 10, 20215 yr Author bearish.htm bullish.htm euro.htm home.htm irish.htm market.htm members-menu.htm reset-password.htm trading.htm uk.htm us.htm Edited July 10, 20215 yr by niallm1974
July 10, 20215 yr Dude! That’s not how it works! Never ever publish your email address on a public forum. I will email you so you can send me the zipped files.
July 12, 20215 yr Author I need to make menu-bar1 look like menu-bar2. Any ideasas my cousin who is majorrity owner of SRTC wants me to make the changes as we are working on introducing a login system for members?
July 12, 20215 yr I sent you an email with instructions on how to do this. Or you could just add another grid column to the css.
Create an account or sign in to comment