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.

div alignment

Featured Replies

Hey again, I seem to have another little problem.

 

I've created a div in CSS called info that has a grey background.

In my <div id="info"> I have the date of a post, and it's on one line.

when I add, <div align="right"> for the comment link, it puts it at the right, but on a separate line.

How can I fix this?

 

<div id="info"><font size="1">Posted on <?php echo $date; ?><div align="right">Comment</div></font></div>

  • Author

Changing the font size in the CSS for the Div Info, still doesn't make a difference.

Removing the <div id="info">, and the <font size="1"> still doesn't make a difference.

You wanna keep the first block div. Something like this.

 

<div id="info">Posted on <?php echo $date; ?><span>Comment</span></div>

 

#info{
float:left;
font-size:13px;
width:200px;
}

#info span{
float: right;
}

 

  • Author

You wanna keep the first block div. Something like this.

 

<div id="info">Posted on <?php echo $date; ?><span>Comment</span></div>

 

#info{
float:left;
font-size:13px;
width:200px;
}

#info span{
float: right;
}

 

I had to change the width to 100% and add the background-color.

It worked perfect, thanks ;D.

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.