Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Help mobile optimizing a site

I have a website that i have coded myself working fine on a computer screen, but when coming to mobile optimizing i am having problems and was wondering if any of you could help i would greatly appreciate it.

Problems:
i cannot get my navbar to be 100% across the whole screen even though width is set to 100%

the navbar dropdown menu is not on the screen, and i cannot move it over.

all these problems are for widths of 320px to 480px

here are the 2 files:
http: //pastebin.com/FCiAwVsk
http: //pastebin.com/H1Pu42a3


thank you in advance to anyone that helps, also if possible if you find a solution could you please explain what i have done wrong as i am learning 😉
Cant really do much with just the HTML Code, could you provide the CSS code also?
[Image: s0lKFns.gif]
(Oct 8, 2015 01:33 PM)ShizzleFly Wrote:  Cant really do much with just the HTML Code, could you provide the CSS code also?

i copied the same link twice now fixed, thank you
Hi, i see the prob:


Change this:
Code
@media (min-width:320px) and (max-width:480px) {
    .slider {
        width: 100%;
        padding-right: 0;

        height: 400px;
        background-size: 100% no-repeat;
    }
    .navbar-brand2 {
      
     margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        width: 50px
    }
.navbar-right {
    padding-top: 20px;
    font-weight: bolder;
}

to this:

Code
@media (min-width:320px) and (max-width:480px) {
    .slider {
        width: 100%;
        padding-right: 0;

        height: 400px;
        background-size: 100% no-repeat;
    }
    .navbar-brand2 {
      
     margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        width: 50px
    }
.navbar-right {
    padding-top: 20px;
    font-weight: bolder;
}
}

Let me know if it worked.
[Image: s0lKFns.gif]
no unfortunately this has not worked, if you would like a screenshot i will send one
sure, send me the pic. weird though
[Image: s0lKFns.gif]
infact i fail to see what u changed so might not of changed it properly, the only difference i saw was the extra bracket at the end excluding #textposiotnindex and textpositionindex2 and that just messes the webpage up


https:/ /gyazo.com/5ba2cf3bb7c4ac70d5ecad88769c67f6
Hu, I think i made a mistake and paste the same code, ill check.

EDIT: mmm. Can u send a screenshot/pic?
[Image: s0lKFns.gif]
yes this is a possibility ahhaa


you would like a screenshot of the code?


i will be going off now if anyone finds this solution please just post thank you
That code was pretty messy. One second it was like "oh, I can read this", and then it became "what happened to the syntax?!".
So please, comment your code in order to make it easier to read.

Any who, I'll have to clean it up a bit more, but I put it on a codepen for easier use by anyone who want sto have a quick look.
http://codepen.io/anon/pen/pjwWEz?editors=110
Yes I realise my code is messy, thanks for cleaning it up. Does anyone have a solution to my problem though.
(Oct 8, 2015 03:53 PM)ElasticWeed Wrote:  That code was pretty messy. One second it was like "oh, I can read this", and then it became "what happened to the syntax?!".
So please, comment your code in order to make it easier to read.

Any who, I'll have to clean it up a bit more, but I put it on a codepen for easier use by anyone who want sto have a quick look.
http://codepen.io/anon/pen/pjwWEz?editors=110

Hi, im always using this: jbeutifier.org
[Image: s0lKFns.gif]
have u managed to find a solution


Possibly Related Threads...
Thread / Author Replies Views Last Post
by T0ucaNSaMFeb 3, 2016 12:43 PM 10 218 Feb 3, 2016 12:43 PM
Last Post: T0ucaNSaM
by Shashwat7Mar 13, 2015 06:10 AM 1 102 Mar 13, 2015 06:10 AM
Last Post: Squito
by SpringAug 2, 2013 11:58 AM 3 138 Aug 2, 2013 11:58 AM
Last Post: Vector