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.

How do I move the text up the page using CSS?

Featured Replies

Hello again everyone,

I have a couple of questions that I hope someone can help me with.....

 

1. How do I create a pre defined space below the menu bar so I can add a paragraph of text below it?

eg: The paragraph of text I have is fine but when I try to move it nearer the menu I can only get it to sit directly underneath the menu bar without any clearance.

 

2. How do I add text/links contained within a coloured 'strip' along the bottom of the page below the address I have on their?

eg: I need the 'strip' to be level with the bottom of the images with the address above.

 

As you already know I am new to this but with your help & my determination to learn I will get there eventually! ;-)

 

The test site I am referring to is http://newsite.nevroeind.com

 

user: alen

password: 19chickenass66

 

Hey, I trust you guys!

 

Regards,

 

Alen

1. I'm not sure how much you know about CSS, nor can I tell because I can't view the site (it asks for a password when I try), so this is rather basic. You can create areas on a page with predefined locations and sizes using ids or classes. In your CSS it'd look something like this:

 

<style>

#nameofthisspacegoeshere{
position:absolute;
top:#px;
left:#px;
height:#px;
width:#px;
}

</style>

and then

 

<div ID="nameofthisspacegoeshere">
Write here and it'll be positioned in the place you specified above.
</div>

 

Where it says 'nameofthisspacegoeshere' you name the area, and then where the #s are (only the 4 inside the {}'s) you put a number in pixels to specify the width, height, distance from the top, and distance from the left of the area. The 'postion:absolute;' makes sure your coding will not be ignored, so if you are using a class/id and you forgot that, adding in 'position:absolute' may solve your problem.

 

Hope this helps some. :3

  • Author

Hi Frisby,

Thanks for your reply.

I will give it a go and see what happens.

If you would like to view the site to get a better idea of what I meant, use the password & username I supplied in my original post ;-)

 

Cheers,

Alen

  • Author
1. I'm not sure how much you know about CSS, nor can I tell because I can't view the site (it asks for a password when I try), so this is rather basic. You can create areas on a page with predefined locations and sizes using ids or classes. In your CSS it'd look something like this:

 

<style>

#nameofthisspacegoeshere{
position:absolute;
top:#px;
left:#px;
height:#px;
width:#px;
}

</style>

and then

 

<div ID="nameofthisspacegoeshere">
Write here and it'll be positioned in the place you specified above.
</div>

 

Where it says 'nameofthisspacegoeshere' you name the area, and then where the #s are (only the 4 inside the {}'s) you put a number in pixels to specify the width, height, distance from the top, and distance from the left of the area. The 'postion:absolute;' makes sure your coding will not be ignored, so if you are using a class/id and you forgot that, adding in 'position:absolute' may solve your problem.

 

Hope this helps some. :3

 

Hi Frisby & Happy New Year to you.

I tried what you suggested & it worked exactly as I wanted(as you said it would) it to.

This will help me lots in the future.

Thank you so much for your help.

Kindest Regards,

Alen

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.