Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Other Programming › Web Languages › Stuck with this project.

Stuck with this project.

Posts 1–9 of 9 · Page 1 of 1
wizardshogwarts
wizardshogwarts
Stuck with this project.
Hell guys So i'm learning html+ccs.

So I am making a project but I am stuck. Something with my header:

This is what i need to get:

Couple of thinks that i tried:

Tried to put the tree image ass a background-image. but that didn't work wasn't be able to put the image next the h1(make-a-wishlist for santa!)
So then i tried to put image in html. so I can place the image and the h1 as display: inline-block. (so now the image and the h1 are next to each other.)
Problem is i want to push the h1 a bit up so it stays in the middle of the picture.

This is what im able to do:


the header has to be centered.

Anyone who can help me put the h1(make-a-wishlist for santa!) like this:

Code:

<header>
<img src="images/xmas-tree.gif" title="xmas-tree" name="xmas-tree"/>
<h1>Make-a-wishlist for Santa!</h1>
</header>


ps: don't worry about the background i'm able do it.
#1 · 8y ago
wizardshogwarts
wizardshogwarts
Bumping this still havent found it. no css/html users?
#2 · 8y ago
Hell_Demon
Hell_Demon
I'm not a web developer, but adding vertical-align: middle; to both the image and h1, in addition to the inline-block style causes it to align the way you want. Hopefully a web dev can give you a better answer.
#3 · 8y ago
wizardshogwarts
wizardshogwarts
Quote Originally Posted by Hell_Demon View Post
I'm not a web developer, but adding vertical-align: middle; to both the image and h1, in addition to the inline-block style causes it to align the way you want. Hopefully a web dev can give you a better answer.
You did help me in a way. But to place the img en text closer. any ideas?



- - - Updated - - -

Like should i put the img as background image.
#4 · 8y ago
Hell_Demon
Hell_Demon
Try a negative margin; https://www.w3schools.com/css/css_margin.asp
That should bring them closer together.
#5 · 8y ago
wizardshogwarts
wizardshogwarts
Quote Originally Posted by Hell_Demon View Post
Try a negative margin; https://www.w3schools.com/css/css_margin.asp
That should bring them closer together.
allready thought of this but my teacher hates using negative margin. so there should be another way to fix this.
but thanks for your effort.
#6 · 8y ago
Hell_Demon
Hell_Demon
I guess setting the image as background and offsetting the text would then indeed be the best solution. Again, I'm not a web developer, I just tried some stuff in a html fiddle to see what could work.
#7 · 8y ago
Stack
Stack
Centering images nested inside a div are done using

Code:
margin: 0 auto;
That will horizontally align your image using div's properties (set up the width to 100% or to 100vw)


Oh rofl, I misread your request.

To vertical align a h1 so it has the same height as the image, use min-height and max-height and they have to be equal to div's height parent.
#8 · edited 8y ago · 8y ago
Matthew
Matthew
Use w3 to help you code websites, center images, etc

It helped me
#9 · 8y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • I need help with this projectBy killer121561 in Combat Arms Coding Help & Discussion
    7Last post 15y ago
  • Stuck with this !@#$%By MJCreado in WarRock Korea Hacks
    8Last post 14y ago
  • with this postBy ace76543 in General
    5Last post 19y ago
  • sf0d plays with this shitBy iverson954360 in General
    4Last post 19y ago
  • wats wrong with this weapon codeBy CHECK2PASS in WarRock - International Hacks
    3Last post 19y ago

Tags for this Thread

None