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.

Design Layout

Featured Replies

I want to acheive the following:

 

 

post-5282-1227106478_thumb.jpg

 

 

 

So the image and text boxes are left and right aligned how do i acheive this in css ??

 

I guessing I need to use DIVS with IDS or classes.

 

Cheers

 

Lee

Hi,

 

do this:

 

<div id="container">

<div id="header"></div><!-- #header -->

<div id="content">

	<div class="image-text-combo-left">

		<p><img /></p><p></p>

	</div>

	<div class="image-text-combo-right">

		<p><img /></p><p></p>

	</div>

</div><!-- #content -->

<div id="footer"></div><!-- #footer -->

</div><!-- #container -->

 

 

and then float:left or float:right the images in the first paragraph of each div with the class "image-text-combo".

e.g.

 

div.image-text-combo-left p img {float:left;}

 

and

 

div.image-text-combo-right p img {float:right;}

  • Author

Thanks great stuff

 

Cheers

 

Lee

  • Author

I did what you said but the site is still in the center

 

what now??

I did what you said but the site is still in the center

 

what now??

 

#container {width: XXXpx; margin: 0px auto;}

 

This style will make your container stay centered. Just replace XXX with the actual width.

 

Probably worth adding:

 

#footer {clear: both;}

Also, you might want to add

 

body { text-align: center; }

 

as (correct me if I'm wrong), IE7 Doesn't like

 

#container_name { margin: 0 auto; }

Also, you might want to add

 

body { text-align: center; }

 

as (correct me if I'm wrong), IE7 Doesn't like

 

#container_name { margin: 0 auto; }

 

Quite right Luke, IE doesn't like it. Piece of ****. lol

IE7 has no problem with it

 

Sorry you're right. I'ts IE 6 and below that has problems with it.

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.