Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSS Responsive Problem

Featured Replies

I'm just finishing off my first portfolio site and I've added an button which when you click on it gives links to all my social media pages. However when I go to make it responsive it goes out of place. It starts off following my cursor as though it'll be responsive no problem so it would be fine on iPad's etc but when i go even smaller to smartphone size it stops. Anyone got any ideas what it could be?

 

 

post-65477-0-04054100-1431345116_thumb.png

post-65477-0-56601600-1431345120_thumb.png

post-65477-0-06908100-1431345121_thumb.png

You're using a bunch of 'Magic numbers' to position it. Avoid magic numbers, they are entirely circumstantial and as soon as anything changes such as the screen width here it breaks.

A lmagic number here is

left: -31px;

To position this in the center why not use one of the centering methods:

text-align: center,

 

or

position: absolute;
left: 50%;
transform: translateX(-50%);

As an aside, try to rely less heavily on jQuery plugins, your page has a weight of 1.4mb which is huge, a site like this should be sub 500kb at worst. Also your scritps and stylesheets should be concatenated.

You're learning, I understand that but these are good principles to follow, rather than adding in loads of plugins to do fancy animations try to write more of it yourself, this will also help you learn and improve as a developer :)

Edited by rbrtsmith

a lot of that weight is in photos in png format - maybe for the slider? is there some reason you're not using jpegs for photographic images?

 

also if you're putting photoshop @ 100% (bit of a bold claim considering how complex it is...) then at least check the white balance on your profile pic and remove the blonde hair (not yours i assume? :) )

a lot of that weight is in photos in png format - maybe for the slider? is there some reason you're not using jpegs for photographic images?

 

also if you're putting photoshop @ 100% (bit of a bold claim considering how complex it is...) then at least check the white balance on your profile pic and remove the blonde hair (not yours i assume? :) )

 

I remember when I did one of those slider skill things. Put my CSS at 90% and my JS at 80%.

more like 40% and 30% would have been more accurate lol

 

To be honest I don't think they serve much purpose, prosepective employers will rather judge how profficient you are by looking at your work, we get at lot of applicants claiming HTML CSS at 80-100% and it clearly isn't close to that on inspection of their code. We tend to ignore them when we see them.

  • Author

Its by no way finished! Its just a university project at the moment. Thanks for the help and yes i was hesitant to upload here please dont take it too seriously I just need to get the marks for the project at the moment!

It looks good from a design perspective. Hopefully some of our suggestions can help you get a better score on the project :) We're all learning on here and we're all at different levels on our paths of improvement. We are not here to flame or shoot anybody down, merely offer our suggestions for improvement.

Edited by rbrtsmith

Robert is right - we're here to offer help - any criticism i offered is constructive ;)

the cv download link doesn't have enough contrast but i really like the idea of a landscape cv! it's the first one i've seen done like that.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.