Aligning content

Got a kewl website or have a website question? Hosting? Servers?
Post Reply
Alex57689
Posts: 3
Joined: Wed Sep 16, 2015 12:02 am

Aligning content

Post by Alex57689 »

i have a website and i managed to get a <p> tag and <img /> tag to line up horizontally but the page wasent very dynamic so i descided to make it more dynamic using % values instead of px but i cant align any thing any more pls help

<div id="story" onclick="location.href = './reviews/destiny/destiny.html'">
<p id="text"><img src="./reviews/destiny/destiny.jpg" id="img" />Destiny 2.0 Patch Causes Issues, Bungie Aware</p>
</div>
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Aligning content

Post by hallsofvallhalla »

not sure what you are attempting. Got some code snippets?
Alex57689
Posts: 3
Joined: Wed Sep 16, 2015 12:02 am

Re: Aligning content

Post by Alex57689 »

you can go to www.thesmarthub.me.pn if you want to look at the page but thats the main code for the home page

<div id="">
<center>
<h1 id="title">Latest News</h1>
</center>


<div id="Latest-News">

<div id="" onclick="location.href = 'reviews/ResidentEvil/ResidentEvilUmbrellaCorps.html'">
<p id="text"><img src="reviews/ResidentEvil/ResidentEvil.png" id="img" />New Competitive Shooter for PS4 Announced by Capcom, Resident Evil: Umbrella Corps </p>
</div>
<br>
<br />

<div id="" onclick="location.href = 'reviews/KingdomHearts/KingdomHearts.html'">
<p id="text"><img src="reviews/KingdomHearts/KingdomHearts.png" id="img" />Kingdom Hearts HD 2.8 Final Chapter Prologue Announced For PS4 </p>
</div>
<br>
<br />

<div id="" onclick="location.href = 'reviews/PS4/PS4.html'">
<p id="text"><img src="reviews/PS4/PS4.jpg" id="img" />PlayStation 4 Price Drop Announced For Japan </p>
</div>
<br>
<br />


<div id="" onclick="location.href = 'reviews/Nintendo/Mario.html'">
<p id="text"><img src="reviews/Nintendo/mario.png" id="img" />Mario Celebrates 30th Birthday, Nintendo Appoints Tatsumi Kimishima President</p>
</div>

<br />
<br />
<div id="" onmouseover="highlight()" onclick="location.href = './reviews/thing/art1.html'">
<p id="text"><img src="./reviews/thing/art1.jpg" id="img" />Halo 5 Guardian Split screen confirmed gone for steady 60fps.</p>
</div>
<br />
<br />

<div id="" onclick="location.href = './reviews/destiny/destiny.html'">
<p id="text"><img src="./reviews/destiny/destiny.jpg" id="img" />Destiny 2.0 Patch Causes Issues, Bungie Aware</p>
</div>

<br />

<br />
<div id="" onclick="location.href = 'reviews/fallout 4/fallout.html'">
<p id="text"><img src="reviews/fallout 4/fallout.jpg" id="img" />Bethesda has just unveiled their Season Pass for Fallout 4 </p>
</div>
<br />

<br />



<br />




</div>

</div>
sumit812
Posts: 5
Joined: Tue Jan 05, 2016 11:04 am

Re: Aligning content

Post by sumit812 »

Nice post thanks for sharing with us
Post Reply

Return to “WebSite”