Everything posted by yy1993
-
Blank area beside navigations
Solved. Thread closed.
-
Blank area beside navigations
Hey Wickham, I've sent you a PM, see if you've received it. Thanks.
-
Blank area beside navigations
Or did you guys meant to create a "reset.css" with the ul, li { margin: 0; padding: 0; } ? Then in my HTML, I'll need to include the reset.css?
-
Blank area beside navigations
As you've quoted "a reset will make browsers the same but probably not what you want for your page", are there still any ways to solve this? Sorry, but could you help me check this new CSS? The reset was added into the CSS, but it still didn't work for me. Slight changes I've made: Different image link & some shadows, so you guys might wanna ignore those. The rest are all the same, just that I added in the reset. The reset has been bold in the CSS, which you guys told me to add in. body { font-family: Helvetica Neue, Helvetica, Arial; color: #ffffff; font-size: 14px; background: #1f1f1f; } a:link, a:active, a:visited { text-decoration: none; color: #ffffff; } a:hover { text-decoration: underline; color: #ffffff; } .top-menu { display: block; width: 1260px; margin: 0 auto; } /* Navigation */ [b].nav ul, li { margin: 0; padding: 0; }[/b] .nav { background: url(../images/main/menu-bg.png) left top repeat-x; float: left; width: 100%; display: block; margin-left: 0px; margin-top: 15px; margin-bottom: 15px; padding: 15px; } .nav li { text-indent: none; display:inline; } .nav li a { color: #ffffff; display: block; float: left; font-size: 18px; text-align: center; padding: 3px 15px; margin-right: 15px; border-bottom: 1px solid #141414; } .nav li a:hover, .nav li a.selected { color: #5e5e5e; text-decoration: none; } .nav li a.selected { background: #ffffff; border: 1px solid #1F1F1F; -moz-border-radius: 15px; -webkit-border-radius: 15px; text-shadow: 1px 0px 1px #563314; overflow: hidden; } #footer { clear: both; font-size: 12px; text-align: center; color: #5e5e5e; }
-
Blank area beside navigations
Nope, tried them, not working for me. Thanks anyway.
-
Blank area beside navigations
Er, I'm not sure. I just wrote the basics out, then slowly add on with my <ul> tags and its following classes.
-
Blank area beside navigations
Hi guys, Sorry for opening yet another thread on WDF. I'm still trying with some designing via CSS. My previous thread was solved thanks to empek. Now, here's an attached image below. I've an unwanted area beside my navigation menu (the red box area), as shown in the image. My current CSS is: body { font-family: Helvetica Neue, Helvetica, Arial; color: #ffffff; font-size: 14px; background: #1f1f1f; } a:link, a:active, a:visited { text-decoration: none; color: #ffffff; } a:hover { text-decoration: underline; color: #ffffff; } .top-menu { display: block; width: 1260px; margin: 0 auto; } /* Navigation */ .nav { background: url(../images/menu-bg.png) left top repeat-x; float: left; width: 100%; display: block; margin-top: 15px; margin-bottom: 15px; padding: 15px; } .nav li { display:inline; } .nav li a { color: #ffffff; display: block; float: left; font-size: 18px; text-align: center; padding: 3px 15px; margin-right: 15px; border-bottom: 1px solid #141414; } .nav li a:hover, .nav li a.selected { color: #5e5e5e; text-decoration: none; } .nav li a.selected { background: #ffffff; border: 1px solid #1F1F1F; -moz-border-radius: 15px; -webkit-border-radius: 15px; } #footer { clear: both; font-size: 12px; text-align: center; color: #5e5e5e; } I don't understand where's the blank area (the red box area), found in my CSS. I hope that my .nav's padding will remain the same, unless it's required for me to change, so as to remove the area. Thanks, and I hope I've not bothered any of you for asking so much questions!
-
Inline navigation
Thanks a lot! You've helped me. +1!
-
Inline navigation
Sorry, once again, guys. Is it just me, or can you guys see the "lines" at the edge of the border? I've changed my border color to that of my background, and it's still not that great as I want it to: I wanted to make the border something just like the Learn More from http://openatrium.com/, which is beautiful. Right now, by looking at mine, it isn't that beautiful at all, more of ugly, right? Sorry if I'm bothering you guys.
-
Inline navigation
Wow, Empek! Thanks a lot! Seriously, I'm still confused by how margin, float & padding works, so does my classes. Thanks for solving my problems
-
Inline navigation
Alright, thanks empek! Btw, I have another question. So my new CSS will now be: body { font-family: Helvetica Neue, Helvetica, Arial; color: #ffffff; font-size: 14px; background: #1f1f1f; } a:link, a:active, a:visited { text-decoration: none; color: #ffffff; } a:hover { text-decoration: underline; color: #ffffff; } .top-menu { width: 1260px; margin: 0 auto; } /* Navigation */ .nav { float: left; display: block; margin-top: 20px; } .nav li { display:inline; } .nav li a { color: #fffff; padding: 0px 25px 0px 0px; display: block; float: left; font-size: 16px; } .nav li a:hover, .nav li a.selected { color: #5e5e5e; text-decoration: none; } .nav li a.selected { background: transparent; border: 1px solid #ffffff; -moz-border-radius: 10px; } #footer { clear: both; font-size: 12px; text-align: center; color: #5e5e5e; } As you can see below, the image, my Home has a huge space at the right. Can someone guide me on aligning the Home and the rest to the center of the border? Thanks a lot!
-
Inline navigation
So, my question was to make sure that the "selected" class will show the rounded border, with empek's post, the border only shows when I hover over. Even after I altered part of the code to this: .nav li a:hover, .nav li.selected a { color: #5e5e5e; text-decoration: none; } .nav li a.selected { background: #1f1f1f; border: 1px solid #ffffff; -moz-border-radius: 10px; } It didn't work. Anyone can point to me what's wrong?
-
Inline navigation
Hmmm, thanks for pointing out to me. I'll figure some things out before I check back. Thanks.
- Inline navigation
-
Inline navigation
My full CSS is now this, after making changes as what you said: body { font-family: Helvetica Neue, Helvetica, Arial; color: #ffffff; font-size: 14px; background: #1f1f1f; } a:link, a:active, a:visited { text-decoration: none; color: #ffffff; } a:hover { text-decoration: underline; color: #ffffff; } .top-menu { width: 1260px; margin: 0 auto; } /* Navigation */ .nav { float: left; display: block; margin-top: 20px; } .nav li { display:inline; } .nav li a { color: #fffff; padding: 0px 25px 0px 0px; display: block; float: left; font-size: 16px; } .nav li a:hover, .nav li.selected a { color: #5e5e5e; text-decoration: none; -moz-border-radius: 10px; } #footer { clear: both; font-size: 12px; text-align: center; color: #5e5e5e; } It still didn't work for me.
-
Inline navigation
Hi guys, I'm using the "<ul><li></li></ul>" method for inline navigation menu. I want to have a rounded border for a current selected page. Don't mind helping me check what's wrong with me code? CSS .top-menu { width: 1260px; margin: 0 auto; } .nav { float: left; display: block; margin-top: 20px; } .nav li { display:inline; } .nav li a { color: #fffff; padding: 0px 25px 0px 0px; display: block; float: left; font-size: 16px; } .nav li a:hover, .nav li a.selected { color: #5e5e5e; text-decoration: none; -moz-border-radius: 10px; } HTML <div class="top-menu"> <ul class="nav"> <li><a class="selected" href="home.html">Home</a></li> <li><a href="about.html">About Me</a></li> <li><a href="works.html">Works</a></li> <li><a href="contact.html">Contact</a></li> </ul> </div>
-
download.php question
Alright, thanks for that rallport!
-
download.php question
Hi guys, it's being a while since I last posted. Anyway, I'm still learning, and am interested about how yoururl.com/download.php works. I would like to know: - how to start writing the script - how did they encrypt the download.php such that there's download.php?12asidad123123=adknad (I don't know how it goes) - how to add download count If you think I'm lazy, please guide me along on searching correctly on Google, because I don't really know how to enter all these into Google terms. I hope not to get any flamings here about my thread, thanks WDF community!
- Wassup peeps!
-
Famous people born on your birthday
I don't even know any of them for my birthdate.
-
Make it on the Top 15 highscore in my newly made Flash game
Addictive game!! Nice game there!! I only got 17k though
-
Wassup peeps!
Thanks Sam! So, how's the community recently?
-
What happened to the "How do I do that?" category?
OMG, I gotta find categories from now on. Thanks for informing me!
-
Which social media website is most likely to still be around in 2015?
Twitter isn't that "crazy" in Singapore though. Lots of teenagers are still stuck with Facebook in Singapore, here. One thing for sure, I got a feeling that Friendster will be very soon, gone.
-
Wassup peeps!
Wassup guys! How have you guys been? It's been so long since I last checked back to WDF.