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.

I miss something

Featured Replies

So I'am currently building up mine layout via css only.

So I'm using the background-color/borders to get mine website style.

"It's just for the training part to refresh mine css memorie".

 

Now I came to the point I add the center menu next to the left menu.

All seems to work fine but when I re-size the browser then the center menu just get moved

downwards because it just want to be shown.

This issue is as far I know in Google Chrome maybe the other browsers as well.

 

I got all of the code scripts attached and I hope some'one of you know that simple answer that

I am currently over looking.

 

The .jpg image supposed to be in the images map.

 

Edit; reported mine self, I thought I was in the css section.

index.php

main.css

post-21718-0-02637200-1343039024_thumb.jpeg

Edited by kensha

  • Author

Unfortunate I don´t know a place to upload it anymore, because I´m still in practice mode I though of canceling the subscription of mine server.

all your tags must have float left if you are using the float: lleft; attribute.

secondly. when it comes to width and height and floats. everything must be defined. dont put an image in a div, give the div a width and height but not the image. everything needs to be told what to do, thats why you will see the div doing the right thing but not the image.

 

 

Also, the code for the image wasnt visible in your script, so upload it correctly and more people will be able to assist.

 

I hope that helps... plus one for those that do.

  • Author

Yes after some research I indeed figured out you need to use the float:left; everywhere if you want to place something next to it.

But there is 1 thing at it.

Because I use the float:left; code I also need to insert the margin-left:px; and the margin-top:-px; to get the div center menu on the right side of the div left menu.

I wonder if that's the correct way?

Edited by kensha

to center you can use margin:0 auto; the 0 i think is for IE7 or something im not sure...but that should do it

to center you can use margin:0 auto; the 0 i think is for IE7 or something im not sure...but that should do it

 

This is the semi shorthand property or CSS margins. The 0 sets top and bottom margins to 0px an the auto sets the left and right to.. Well, auto.

  • 2 weeks later...

as stated above, 0px auto on margin will center it,

 

0px is top and bottom

auto is left and right, - this is what will center it.

 

you will need to apply this to your nav container,

 

but, if you are floating left you really will just need to set the left margin of the nav container, (assuming you are using a main body container or warpper"

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.