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.

Positioning and wierd problems

Featured Replies

Hi guys, right ive got some wierd issues on the site im designing,

 

the html is here.... http://www.carl-robinson.co.uk/CHS/Concept2.html

the css is here..... http://www.carl-robinson.co.uk/CHS/main2.css

 

if you look on the page your'll see the problems,

 

first the two divs and the bottom i cant get to align properly, i think i managed to bodge it, but then im having problems with the second div's header, the background isn't coming up and if i type more then one word, it starts going down onto a new line.

 

would be great if someone could help me with this because once thats done i can actually start putting content onto pages to get it finished and up!

 

also excuse the messy css! and i know theres alot of other things going haywire on there, im just trying to sort this out first

 

cheers in advane

Hi there,

 

had a look at your css and html, I think if you close your boxone div that'll help, at the moment boxtwo is inside it. Then float boxone and boxtwo left, taking away your position: relative, and they should line up nicely :)

 

Hope it works out,

 

Kirsty

	<div id="boxone">
	<h2 class="secondheader">What We Do </h2>
	<div id="topimgsmall"><img src="images/PtopBGsmall.png" /></div>
	<div class="laing">
		<ul>
			<li>Bespoke system design and supply</li>
			<li>Thermal Store Cylinders </li>
			<li>Underfloor, thermal skirting and low temperature heating systems</li>
			<li>Ground, Air and Water Heat pumps</li>
			<li>Solar collectors</li>
			<li>Boilers </li>
			<li>Control systems</li>
			<li>Domestic manifold systems</li>
			<li>Consultations and Site surveys</li>
			<li>Training available at our new training centre in Chelmsford</li>
			<li>Free technical support and honest advice </li>
			<li>System commissioning</li>
			<li>Free quotations</li>
		</ul>

	</div>
	<div class="botimg2"><img src="images/PbotBGsmall.png" /></div>
	<div id="boxtwo">
		<h2 class="secondheader">I </h2>
		<div id="topimg2"><img src="images/PtopBGsmall.png" /></div>
		<div class="laing">
			<ul>
				<li>Bespoke system design and supply</li>
				<li>Thermal Store Cylinders </li>
				<li>Underfloor, thermal skirting and low temperature heating systems</li>
				<li>Ground, Air and Water Heat pumps</li>
				<li>Solar collectors</li>
				<li>Boilers </li>
				<li>Control systems</li>
				<li>Domestic manifold systems</li>
				<li>Consultations and Site surveys</li>
				<li>Training available at our new training centre in Chelmsford</li>
				<li>Free technical support and honest advice </li>
				<li>System commissioning</li>
				<li>Free quotations</li>
			</ul>
		</div>
		<div class="botimg2"><img src="images/PbotBGsmall.png" /></div>
	</div>

 

CSS:

#boxone

{

 

}

<div id="boxone">

<h2 class="secondheader">What We Do </h2>

 

<div class="laing">

<ul>

<li>Bespoke system design and supply</li>

<li>Thermal Store Cylinders </li>

<li>Underfloor, thermal skirting and low temperature heating systems</li>

<li>Ground, Air and Water Heat pumps</li>

<li>Solar collectors</li>

<li>Boilers </li>

<li>Control systems</li>

<li>Domestic manifold systems</li>

<li>Consultations and Site surveys</li>

<li>Training available at our new training centre in Chelmsford</li>

<li>Free technical support and honest advice </li>

<li>System commissioning</li>

<li>Free quotations</li>

</ul>

 

</div>

<div class="botimg2"><img src="images/PbotBGsmall.png" /></div>

<div id="boxtwo">

<h2 class="secondheader">I </h2>

<div id="topimg2"><img src="images/PtopBGsmall.png" /></div>

<div class="laing">

<ul>

<li>Bespoke system design and supply</li>

<li>Thermal Store Cylinders </li>

<li>Underfloor, thermal skirting and low temperature heating systems</li>

<li>Ground, Air and Water Heat pumps</li>

<li>Solar collectors</li>

<li>Boilers </li>

<li>Control systems</li>

<li>Domestic manifold systems</li>

<li>Consultations and Site surveys</li>

<li>Training available at our new training centre in Chelmsford</li>

<li>Free technical support and honest advice </li>

<li>System commissioning</li>

<li>Free quotations</li>

</ul>

</div>

<div class="botimg2"><img src="images/PbotBGsmall.png" /></div>

</div>

  • Author
Hi there,

 

had a look at your css and html, I think if you close your boxone div that'll help, at the moment boxtwo is inside it. Then float boxone and boxtwo left, taking away your position: relative, and they should line up nicely :)

 

Hope it works out,

 

Kirsty

 

kirsty i love you,

 

i aint got no work done this afternoon until you told me that! cant believe i didnt close that div!!

 

i even checked all my divs earlier! :)

 

thanks alot! might have some more issues in a minute...

I've ignored the styling - just the position - u want something like this:

 

 

CSS: 
#boxone
{
  width: 49%;
  float: left;

}
#boxtwo
{
 width: 49%; 
 float: right; 
}

.clear 
{
 clear: both;
}


<div id="boxone">
<h2 class="secondheader">What We Do </h2>
		<ul>
			<li>Bespoke system design and supply</li>
			<li>Thermal Store Cylinders </li>
			<li>Underfloor, thermal skirting and low temperature heating systems</li>
			<li>Ground, Air and Water Heat pumps</li>
			<li>Solar collectors</li>
			<li>Boilers </li>
			<li>Control systems</li>
			<li>Domestic manifold systems</li>
			<li>Consultations and Site surveys</li>
			<li>Training available at our new training centre in Chelmsford</li>
			<li>Free technical support and honest advice </li>
			<li>System commissioning</li>
			<li>Free quotations</li>
		</ul>
   </div>

	<div id="boxtwo">
		<h2 class="secondheader">I </h2>
			<ul>
				<li>Bespoke system design and supply</li>
				<li>Thermal Store Cylinders </li>
				<li>Underfloor, thermal skirting and low temperature heating systems</li>
				<li>Ground, Air and Water Heat pumps</li>
				<li>Solar collectors</li>
				<li>Boilers </li>
				<li>Control systems</li>
				<li>Domestic manifold systems</li>
				<li>Consultations and Site surveys</li>
				<li>Training available at our new training centre in Chelmsford</li>
				<li>Free technical support and honest advice </li>
				<li>System commissioning</li>
				<li>Free quotations</li>
			</ul>
		</div>
<br class="clear" />

  • Author

hey got a problem now its broken in FF3 now i'll upload it to the interenet in a sec would love if you have a solution for this

Hi, I just checked the one that I changed in FF3 and it worked fine, exactly the same as when I got it off the web apart from the divs lined up. The only part of the code I changed (apart from closing the div) were:

 

#boxone {

width:467px;

float: left;}

 

#boxtwo{

float: left;}

 

I haven't deleted the CSS file I have here yet so if you want it let me know and I'll send it to you :)

 

Kirsty

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.