Aligning content

Got a kewl website or have a website question? Hosting? Servers?

Aligning content

Postby Alex57689 » Tue Sep 15, 2015 7:06 pm

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>
Alex57689
 
Posts: 3
Joined: Tue Sep 15, 2015 7:02 pm
Has thanked: 0 time
Been thanked: 0 time
Blog: View Blog (1)

Re: Aligning content

Postby hallsofvallhalla » Wed Sep 16, 2015 4:39 pm

not sure what you are attempting. Got some code snippets?
User avatar
hallsofvallhalla
Site Admin
 
Posts: 11901
Images: 13
Joined: Wed Apr 22, 2009 6:29 pm
Location: mobile, al
Has thanked: 11 times
Been thanked: 152 times
Blog: View Blog (3)

Re: Aligning content

Postby Alex57689 » Wed Sep 16, 2015 8:33 pm

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>
Alex57689
 
Posts: 3
Joined: Tue Sep 15, 2015 7:02 pm
Has thanked: 0 time
Been thanked: 0 time
Blog: View Blog (1)

Re: Aligning content

Postby sumit812 » Tue Jan 05, 2016 6:09 am

Nice post thanks for sharing with us
sumit812
 
Posts: 5
Joined: Tue Jan 05, 2016 6:04 am
Location: Mumbai
Has thanked: 0 time
Been thanked: 0 time


Return to WebSite

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x